hongji.li
2023-09-22 0194e63b6d5fa4d9318050f2618e3c5b7bedf79b
Merge branch 'dev' of http://47.101.211.7:10101/r/TIANMA_JITUAN into dev_lhj
已重命名11个文件
已添加34个文件
已修改23个文件
已删除12个文件
1522 ■■■■■ 文件已修改
_Main/BL/Relations/Relation_H_MaterialHedgingResult_MacroPlan_MacroPlan_H_MaterialHedgingResult.qbl 23 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
_Main/BL/Type_H_FunctionClass/StaticMethod_SM_GetNextFriday.qbl 29 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
_Main/BL/Type_H_FunctionClass/StaticMethod_SM_InitialForcastData.qbl 71 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
_Main/BL/Type_H_FunctionClass/StaticMethod_SM_MaterialReverse.qbl 65 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
_Main/BL/Type_H_MaterialHedgingResult/Attribute_AuthorizeQty.qbl 8 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
_Main/BL/Type_H_MaterialHedgingResult/Attribute_CustomerCode.qbl 8 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
_Main/BL/Type_H_MaterialHedgingResult/Attribute_CustomerName.qbl 8 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
_Main/BL/Type_H_MaterialHedgingResult/Attribute_ForecastQty.qbl 8 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
_Main/BL/Type_H_MaterialHedgingResult/Attribute_ID.qbl 8 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
_Main/BL/Type_H_MaterialHedgingResult/Attribute_MType.qbl 8 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
_Main/BL/Type_H_MaterialHedgingResult/Attribute_ReverseQty.qbl 8 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
_Main/BL/Type_H_MaterialHedgingResult/Attribute_SKU.qbl 8 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
_Main/BL/Type_H_MaterialHedgingResult/Attribute_Serial.qbl 8 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
_Main/BL/Type_H_MaterialHedgingResult/Attribute_Unit.qbl 8 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
_Main/BL/Type_H_MaterialHedgingResult/DefaultValue_CustomerCode.qbl 6 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
_Main/BL/Type_H_MaterialHedgingResult/DefaultValue_ID.qbl 6 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
_Main/BL/Type_H_MaterialHedgingResult/DefaultValue_SKU.qbl 6 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
_Main/BL/Type_H_MaterialHedgingResult/_ROOT_Type_H_MaterialHedgingResult.qbl 10 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
_Main/BL/Type_H_MessagePassing/Attribute_ValueJsonString.qbl 8 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
_Main/UI/MacroPlannerWebApp/Component_Form234/_ROOT_Component_FrmOrderResultEx#234.def 1 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
_Main/UI/MacroPlannerWebApp/Component_FormHedgingOfLog/_ROOT_Component_FormHedgingOfLog.def 4 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
_Main/UI/MacroPlannerWebApp/Component_FormMaterialPurchase/_ROOT_Component_FormMaterialPurchase.def 2 ●●● 补丁 | 查看 | 原始文档 | blame | 历史
_Main/UI/MacroPlannerWebApp/Component_FormReleaseRecord/_ROOT_Component_FormReleaseRecord.def 2 ●●● 补丁 | 查看 | 原始文档 | blame | 历史
_Main/UI/MacroPlannerWebApp/Component_FrmAuthorizeAndCountersign/Component_PanelOptimizerGeneral718.def 39 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
_Main/UI/MacroPlannerWebApp/Component_FrmAuthorizeAndCountersign/Component_PanelTop0001#655.def 24 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
_Main/UI/MacroPlannerWebApp/Component_FrmAuthorizeAndCountersign/Component_PanelTop820.def 23 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
_Main/UI/MacroPlannerWebApp/Component_FrmAuthorizeAndCountersign/Response_OnCreated.def 46 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
_Main/UI/MacroPlannerWebApp/Component_FrmAuthorizeAndCountersign/Response_Panel261_btn_Cancel_FAAC_OnClick.def 16 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
_Main/UI/MacroPlannerWebApp/Component_FrmAuthorizeAndCountersign/Response_Panel261_btn_OK_FAAC_OnClick.def 44 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
_Main/UI/MacroPlannerWebApp/Component_FrmAuthorizeAndCountersign/_ROOT_Component_FrmAuthorizeAndCountersign.def 30 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
_Main/UI/MacroPlannerWebApp/Component_FrmAuthorizeAndCountersign_Material/Response_OnCreated.def 15 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
_Main/UI/MacroPlannerWebApp/Component_FrmAuthorizeAndCountersign_Material/_ROOT_Component_FrmAuthorizeAndCountersign_Material.def 1 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
_Main/UI/MacroPlannerWebApp/Component_FrmAuthorizeAndCountersign_Order/Component_Panel261#223.def 10 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
_Main/UI/MacroPlannerWebApp/Component_FrmAuthorizeAndCountersign_Order/Component_Panel796.def 26 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
_Main/UI/MacroPlannerWebApp/Component_FrmAuthorizeAndCountersign_Order/Component_Panel989.def 24 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
_Main/UI/MacroPlannerWebApp/Component_FrmAuthorizeAndCountersign_Order/Component_PanelTop#217.def 8 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
_Main/UI/MacroPlannerWebApp/Component_FrmAuthorizeAndCountersign_Order/Component_PanelTop104#150.def 10 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
_Main/UI/MacroPlannerWebApp/Component_FrmAuthorizeAndCountersign_Order/Component_PanelTop264#19.def 8 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
_Main/UI/MacroPlannerWebApp/Component_FrmAuthorizeAndCountersign_Order/Component_PanelTop360#136.def 8 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
_Main/UI/MacroPlannerWebApp/Component_FrmAuthorizeAndCountersign_Order/Component_PanelTop597#324.def 8 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
_Main/UI/MacroPlannerWebApp/Component_FrmAuthorizeAndCountersign_Order/Component_PanelTop612#612.def 8 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
_Main/UI/MacroPlannerWebApp/Component_FrmAuthorizeAndCountersign_Order/Component_PanelTop744#568.def 8 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
_Main/UI/MacroPlannerWebApp/Component_FrmAuthorizeAndCountersign_Order/Component_PanelTop846#618.def 10 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
_Main/UI/MacroPlannerWebApp/Component_FrmAuthorizeAndCountersign_Order/Response_OnCreated.def 43 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
_Main/UI/MacroPlannerWebApp/Component_FrmAuthorizeAndCountersign_Order/Response_Panel261_223_btn_Cancel_FAAC_OnClick.def 16 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
_Main/UI/MacroPlannerWebApp/Component_FrmAuthorizeAndCountersign_Order/Response_Panel261_223_btn_OK_FAAC_OnClick.def 37 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
_Main/UI/MacroPlannerWebApp/Component_FrmAuthorizeAndCountersign_Order/_ROOT_Component_FrmAuthorizeAndCountersign_Order.def 28 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
_Main/UI/MacroPlannerWebApp/Component_FrmMaterial/Component_Panel418.def 17 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
_Main/UI/MacroPlannerWebApp/Component_FrmMaterial/Response_OnCreated.def 15 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
_Main/UI/MacroPlannerWebApp/Component_FrmMaterial/Response_Panel418_btn_Add_FM_OnClick#975.def 28 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
_Main/UI/MacroPlannerWebApp/Component_FrmMaterial/Response_Panel418_btn_Add_FM_OnClick.def 2 ●●● 补丁 | 查看 | 原始文档 | blame | 历史
_Main/UI/MacroPlannerWebApp/Component_FrmMaterial/_ROOT_Component_FrmMaterial.def 15 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
_Main/UI/MacroPlannerWebApp/Component_FrmOrderForecast/Component_Panel351.def 84 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
_Main/UI/MacroPlannerWebApp/Component_FrmOrderForecast/Component_Panel383.def 1 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
_Main/UI/MacroPlannerWebApp/Component_FrmOrderForecast/Component_Panel647.def 2 ●●● 补丁 | 查看 | 原始文档 | blame | 历史
_Main/UI/MacroPlannerWebApp/Component_FrmOrderForecast/Component_Panel849.def 4 ●●● 补丁 | 查看 | 原始文档 | blame | 历史
_Main/UI/MacroPlannerWebApp/Component_FrmOrderForecast/Component_liH_Forecast.def 4 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
_Main/UI/MacroPlannerWebApp/Component_FrmOrderForecast/Component_list_ForecastView_FOF#670.def 2 ●●● 补丁 | 查看 | 原始文档 | blame | 历史
_Main/UI/MacroPlannerWebApp/Component_FrmOrderForecast/Response_OnClose.def 3 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
_Main/UI/MacroPlannerWebApp/Component_FrmOrderForecast/Response_OnCreated.def 37 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
_Main/UI/MacroPlannerWebApp/Component_FrmOrderForecast/Response_Panel351_btn_Add_Material_FOF503_OnClick#222.def 43 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
_Main/UI/MacroPlannerWebApp/Component_FrmOrderForecast/Response_Panel351_btn_Add_Order_FOF449_OnClick#880.def 43 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
_Main/UI/MacroPlannerWebApp/Component_FrmOrderForecast/Response_Panel351_btn_InitialData778_OnClick#971.def 35 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
_Main/UI/MacroPlannerWebApp/Component_FrmOrderForecast/Response_Panel647_btn_Add_Order_FOF_OnClick.def 2 ●●● 补丁 | 查看 | 原始文档 | blame | 历史
_Main/UI/MacroPlannerWebApp/Component_FrmOrderForecast/Response_liH_Forecast_OnDoubleClick.def 16 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
_Main/UI/MacroPlannerWebApp/Component_FrmOrderForecast/Response_liH_Forecast_OnSelectionChanged.def 23 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
_Main/UI/MacroPlannerWebApp/Component_FrmOrderForecast/_ROOT_Component_FrmOrderForecast.def 9 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
_Main/UI/MacroPlannerWebApp/Component_FrmOrderResult/_ROOT_Component_FrmOrderResult.def 1 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
_Main/UI/MacroPlannerWebApp/Component_FrmRAShow/Component_List696.def 41 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
_Main/UI/MacroPlannerWebApp/Component_FrmRAShow/Component_Panel224.def 48 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
_Main/UI/MacroPlannerWebApp/Component_FrmRAShow/Component_Panel950.def 25 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
_Main/UI/MacroPlannerWebApp/Component_FrmRAShow/Component_listActionBarPage112.def 4 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
_Main/UI/MacroPlannerWebApp/Component_FrmRAShow/Component_listContextMenu660.def 4 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
_Main/UI/MacroPlannerWebApp/Component_FrmRAShow/Response_OnCreated.def 16 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
_Main/UI/MacroPlannerWebApp/Component_FrmRAShow/Response_Panel224_btn_Query_FRAS_OnClick.def 20 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
_Main/UI/MacroPlannerWebApp/Component_FrmRAShow/_ROOT_Component_FrmRAShow.def 33 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
_Main/UI/MacroPlannerWebApp/Component_FrmTEST/Component_ListData_FT#710.def 41 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
_Main/UI/MacroPlannerWebApp/Component_FrmTEST/Component_Panel675.def 23 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
_Main/UI/MacroPlannerWebApp/Component_FrmTEST/Response_Panel675_ButtonClear_OnClick.def 36 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
_Main/UI/MacroPlannerWebApp/Component_FrmTEST/_ROOT_Component_FrmTEST.def 42 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
_Main/BL/Relations/Relation_H_MaterialHedgingResult_MacroPlan_MacroPlan_H_MaterialHedgingResult.qbl
¶Ô±ÈÐÂÎļþ
@@ -0,0 +1,23 @@
Quintiq file version 2.0
#parent: #root
Relation H_MaterialHedgingResult_MacroPlan_MacroPlan_H_MaterialHedgingResult
{
  #keys: '1[414724.0.133544606]'
  DefaultRelationStrategy
  {
  }
  RelationSide.LeftSide MacroPlan
  {
    #keys: '3[414724.0.133544608][414724.0.133544607][414724.0.133544609]'
    Cardinality: '0to1'
    ObjectDefinition: H_MaterialHedgingResult
    OwningSide: 'Reference'
  }
  RelationSide.RightSide H_MaterialHedgingResult
  {
    #keys: '3[414724.0.133544611][414724.0.133544610][414724.0.133544612]'
    Cardinality: '1toN'
    ObjectDefinition: MacroPlan
    OwningSide: 'Owned'
  }
}
_Main/BL/Type_H_FunctionClass/StaticMethod_SM_GetNextFriday.qbl
¶Ô±ÈÐÂÎļþ
@@ -0,0 +1,29 @@
Quintiq file version 2.0
#parent: #root
StaticMethod SM_GetNextFriday () as Date
{
  Description: '获取下一个星期5的日期'
  TextBody:
  [*
    /**********************获取下一个周5的日期*******************
    *创建人:yunying
    *创建日期:2023-09-21
    *描述:得到下一个星期5的日期,如果当天时星期五,则返回当天日期,创建订单使用
    **********************************************************/
    //定义下一个星期
    nTargetWeenNum := 5;
    nTodayWeekNum := Date::ActualDate().DayOfWeek();
    // å‘后偏移天数
    nAddDays := 0;
    if( nTodayWeekNum <= nTargetWeenNum)
    {
      nAddDays := nTargetWeenNum-nTodayWeekNum;
    }
    else
    {
      nAddDays := 7 - nTodayWeekNum+nTargetWeenNum;
    }
    // ä¸‹ä¸€ä¸ªæ˜ŸæœŸçš„æ—¥æœŸ
    return Date::ActualDate() + nAddDays;
  *]
}
_Main/BL/Type_H_FunctionClass/StaticMethod_SM_InitialForcastData.qbl
¶Ô±ÈÐÂÎļþ
@@ -0,0 +1,71 @@
Quintiq file version 2.0
#parent: #root
StaticMethod SM_InitialForcastData (
  MacroPlan Owner
) as owning JSON
{
  Description: '初始化订单预测信息'
  TextBody:
  [*
    /**********************************初始化订单预测信息***************************************
    *注:未确定上游预测订单更新逻辑和数据有效性,这里进行二次处理,新生成一个列表,避免上游信息变动严重
    *    å½±å“åŠŸèƒ½
    *
    *****************************************************************************************/
    // åˆå§‹åŒ–结果
    bStatus := false;
    strMsg :="";
    try{
      // é¢„测数据2此处理(筛选+客户名称提取)
      if(Owner.H_Forecast(relget ).Size()>0)
      {
        traverse( Owner,H_Forecast,Obj,not isnull( Obj))
        {
          Owner.H_Forecast(reldelete, Obj);
        }
      }
      AllData:= selectset( Owner, Product_MP.SalesDemand.astype( Forecast ),object,object.EndDate().DateTime().Date() >= Date::ActualDate().StartOfMonth()
                           and object.EndDate().DateTime().Date() <= Date::ActualDate().StartOfNextMonth().StartOfNextMonth().StartOfNextMonth().StartOfNextMonth()
                           and object.Quantity()>0 );
      CustomName:="";
      DepartMent:="";
      idx:=0;
      traverse( AllData,Elements,Obj,not isnull(Obj))
      {
        idx:=Obj.SalesSegmentName().FindString( "-",0);
        if(idx>0)
        {
          DepartMent:=Obj.SalesSegmentName().SubString( 0,idx);
          CustomName := Obj.SalesSegmentName().SubString( idx+1, Obj.SalesSegmentName().Length() - (idx+1));
        }
        else
        {
          CustomName :=Obj.SalesSegmentName();
          DepartMent := Obj.SalesSegmentName();
        }
         Owner.H_Forecast(relnew,OrderCode := H_FunctionClass::SM_GenerateID( "OF"),
                                SKU := Obj.ProductID(),
                                CustomCode := CustomName,
                               CustomName := CustomName,
                               Util:=Obj.UnitOfMeasureName(),
                               NeedTime:=Obj.EndDate(),
                               ForecastQty:=[Number]Obj.Quantity().Round( 0),
                               Department:=DepartMent);
      }
      bStatus := true;
      strMsg :="订单预测初始化成功!";
    }
    onerror
    {
      strMsg :="订单预测初始化失败,可能影响冲减计算,请联系系统管理员!";
      Owner.H_ErrorLogs(relnew,EClassName := "H_FunctionClass",EDateTime := DateTime::ActualGMTTime(),EFunctionName := "SM_InitialForcastData",
                         DeveloperInformation :=  e.DeveloperInformation(),ErrorNr := e.ErrorNr(),DetailedInformation := e.DetailedInformation(),
                         GeneralInformation := e.GeneralInformation());
    }
    return JSON::Object().Add( "Status",bStatus)
                         .Add( "Msg",strMsg).Build();
  *]
}
_Main/BL/Type_H_FunctionClass/StaticMethod_SM_MaterialReverse.qbl
@@ -40,7 +40,7 @@
        // èŽ·å–é¢„æµ‹æ•°é‡ï¼ˆå®¢æˆ·+SKU+月份 ç†è®ºæ˜¯æ²¡æœ‰ç‰©æ–™é¢„测)
        OrderForecast := select(Owner, H_OrderForecastRealQty , Obj, Obj.SKU() = SKU 
                                              and Obj.CustomID() = CustomerCode 
                                              and Obj.Month().Format( "YM2") = Date::ActualDate().Format( "YM2"));
                                              and Obj.Month().Format( "YM2") = Date::ActualDate().Format( "YM2"));
        if ( not isnull(OrderForecast))
        {
            nForecastQtyOld := OrderForecast.ForecatsRealQty();
@@ -93,6 +93,28 @@
            Owner.H_ReverseRealQty(relnew,ID := H_FunctionClass::SM_GenerateID( "RQ"),SKU := SKU,Unit := "通过SKU获取",ReverseRealQty := nReverseQtyNew);
          } 
          
          MaterialResult := selectset( Owner,H_MaterialHedgingResult,Obj,Obj.SKU() = SKU);
          if( MaterialResult.Size()=0)
          {
              Owner.H_MaterialHedgingResult(relnew,
                                             ID := H_FunctionClass::SM_GenerateID( "MR"),
                                             SKU:=SKU,
                                             ForecastQty := nForecastQtyNew,
                                             ReverseQty := nReverseQtyNew,
                                             AuthorizeQty := 0,
                                             CustomerCode := CustomerCode,
                                             CustomerName := "",
                                             Unit := "",
                                             MType := "物料/半成品");
          }
          else
          {
              traverse( MaterialResult,Elements,Obj,not isnull( Obj))
              {
                 Obj.ReverseQty(  nReverseQtyNew);
              }
          }
          // é‡Šæ”¾é‡‡è´­
          Owner.H_MaterialPurchase(relnew,ID := H_FunctionClass::SM_GenerateID( "MP"),VCode:=VCode, DemandTime := DateTime::ActualTime(),
                                    H_HedgingRecord_ID := HRID,SKU := SKU,ProductSubclassType := "物料类型,用SKU抓物料表得到",Qty := OperateQty,Unit := "通过SKU抓",
@@ -196,7 +218,46 @@
                                                                                            AuthorizeRealQty :=nAuthorizeQtyNew,
                                                                                            Unit := "SKU åˆ°ç‰©æ–™è¡¨èŽ·å–");
          } 
          //更新结果
          MaterialResult := selectset( Owner,H_MaterialHedgingResult,Obj,Obj.SKU() = SKU);
          if( MaterialResult.Size()=0)
          {
            // æ·»åŠ ä¸€æ¡åç­¾è®°å½•
            Owner.H_MaterialHedgingResult(relnew,
                                   ID := H_FunctionClass::SM_GenerateID( "MR"),
                                   SKU:=SKU,
                                   ForecastQty := nForecastQtyNew,
                                   ReverseQty := nReverseQtyNew,
                                   AuthorizeQty := 0,
                                   CustomerCode := CustomerCode,
                                   CustomerName := "",
                                   Unit := "",
                                   MType := "物料/半成品");
            // æ·»åŠ ä¸€æ¡æŽˆæƒè®°å½•
            Owner.H_MaterialHedgingResult(relnew,
                                           ID := H_FunctionClass::SM_GenerateID( "MR"),
                                           SKU:=SKU,
                                           ForecastQty := nForecastQtyNew,
                                           ReverseQty := nReverseQtyNew,
                                           AuthorizeQty := nAuthorizeQtyNew,
                                           CustomerCode := CustomerCode,
                                           Unit := "",MType := "物料/半成品",
                                           CustomerName := CustomerCode);
          }
          else
          {
              traverse( MaterialResult,Elements,Obj,not isnull( Obj))
              {
                Obj.ReverseQty(  nReverseQtyNew);
                if( Obj.CustomerCode()= CustomerCode)
                {
                  Obj.AuthorizeQty(nAuthorizeQtyNew);
                  Obj.ForecastQty(nForecastQtyNew);
                }
              }
          }
          // é‡Šæ”¾é‡‡è´­
          nMid_R :=OperateQty - nReverseQtyOld;
          if( nMid_R > 0)
_Main/BL/Type_H_MaterialHedgingResult/Attribute_AuthorizeQty.qbl
¶Ô±ÈÐÂÎļþ
@@ -0,0 +1,8 @@
Quintiq file version 2.0
#parent: #root
Attribute AuthorizeQty
{
  #keys: '3[414724.0.133544641][414724.0.133544640][414724.0.133544642]'
  Description: '授权剩余数量'
  ValueType: Number
}
_Main/BL/Type_H_MaterialHedgingResult/Attribute_CustomerCode.qbl
¶Ô±ÈÐÂÎļþ
@@ -0,0 +1,8 @@
Quintiq file version 2.0
#parent: #root
Attribute CustomerCode
{
  #keys: '3[414724.0.133544653][414724.0.133544652][414724.0.133544654]'
  Description: '客户ID'
  ValueType: String
}
_Main/BL/Type_H_MaterialHedgingResult/Attribute_CustomerName.qbl
¶Ô±ÈÐÂÎļþ
@@ -0,0 +1,8 @@
Quintiq file version 2.0
#parent: #root
Attribute CustomerName
{
  #keys: '3[414724.0.133544660][414724.0.133544659][414724.0.133544661]'
  Description: '客户名称'
  ValueType: String
}
_Main/BL/Type_H_MaterialHedgingResult/Attribute_ForecastQty.qbl
¶Ô±ÈÐÂÎļþ
@@ -0,0 +1,8 @@
Quintiq file version 2.0
#parent: #root
Attribute ForecastQty
{
  #keys: '3[414724.0.133544656][414724.0.133544655][414724.0.133544657]'
  Description: '当月预测剩余数量'
  ValueType: Number
}
_Main/BL/Type_H_MaterialHedgingResult/Attribute_ID.qbl
¶Ô±ÈÐÂÎļþ
@@ -0,0 +1,8 @@
Quintiq file version 2.0
#parent: #root
Attribute ID
{
  #keys: '3[414724.0.133544626][414724.0.133544625][414724.0.133544627]'
  Description: 'KEY'
  ValueType: String
}
_Main/BL/Type_H_MaterialHedgingResult/Attribute_MType.qbl
¶Ô±ÈÐÂÎļþ
@@ -0,0 +1,8 @@
Quintiq file version 2.0
#parent: #root
Attribute MType
{
  #keys: '3[414724.0.134572562][414724.0.134572561][414724.0.134572563]'
  Description: ' ç‰©æ–™ç±»åž‹'
  ValueType: String
}
_Main/BL/Type_H_MaterialHedgingResult/Attribute_ReverseQty.qbl
¶Ô±ÈÐÂÎļþ
@@ -0,0 +1,8 @@
Quintiq file version 2.0
#parent: #root
Attribute ReverseQty
{
  #keys: '3[414724.0.133544623][414724.0.133544622][414724.0.133544624]'
  Description: '反签剩余数量'
  ValueType: Number
}
_Main/BL/Type_H_MaterialHedgingResult/Attribute_SKU.qbl
¶Ô±ÈÐÂÎļþ
@@ -0,0 +1,8 @@
Quintiq file version 2.0
#parent: #root
Attribute SKU
{
  #keys: '3[414724.0.133544644][414724.0.133544643][414724.0.133544645]'
  Description: 'SKU编码'
  ValueType: String
}
_Main/BL/Type_H_MaterialHedgingResult/Attribute_Serial.qbl
¶Ô±ÈÐÂÎļþ
@@ -0,0 +1,8 @@
Quintiq file version 2.0
#parent: #root
Attribute Serial
{
  #keys: '3[414724.0.133544647][414724.0.133544646][414724.0.133544648]'
  Description: '序号,不一定使用'
  ValueType: Number
}
_Main/BL/Type_H_MaterialHedgingResult/Attribute_Unit.qbl
¶Ô±ÈÐÂÎļþ
@@ -0,0 +1,8 @@
Quintiq file version 2.0
#parent: #root
Attribute Unit
{
  #keys: '3[414724.0.133544673][414724.0.133544672][414724.0.133544674]'
  Description: '单位'
  ValueType: String
}
_Main/BL/Type_H_MaterialHedgingResult/DefaultValue_CustomerCode.qbl
¶Ô±ÈÐÂÎļþ
@@ -0,0 +1,6 @@
Quintiq file version 2.0
#parent: #root
DefaultValue
{
  TargetAttribute: CustomerCode
}
_Main/BL/Type_H_MaterialHedgingResult/DefaultValue_ID.qbl
¶Ô±ÈÐÂÎļþ
@@ -0,0 +1,6 @@
Quintiq file version 2.0
#parent: #root
DefaultValue
{
  TargetAttribute: ID
}
_Main/BL/Type_H_MaterialHedgingResult/DefaultValue_SKU.qbl
¶Ô±ÈÐÂÎļþ
@@ -0,0 +1,6 @@
Quintiq file version 2.0
#parent: #root
DefaultValue
{
  TargetAttribute: SKU
}
_Main/BL/Type_H_MaterialHedgingResult/_ROOT_Type_H_MaterialHedgingResult.qbl
¶Ô±ÈÐÂÎļþ
@@ -0,0 +1,10 @@
Quintiq file version 2.0
#root
#parent: #DomainModel
Type H_MaterialHedgingResult
{
  #keys: '5[414724.0.133544603][414724.0.133544601][0.0.0][414724.0.133544602][414724.0.133544604]'
  BaseType: Object
  Description: '物料反签授权结果'
  StructuredName: 'H_MaterialHedgingResults'
}
_Main/BL/Type_H_MessagePassing/Attribute_ValueJsonString.qbl
¶Ô±ÈÐÂÎļþ
@@ -0,0 +1,8 @@
Quintiq file version 2.0
#parent: #root
Attribute ValueJsonString
{
  #keys: '3[414724.0.138457270][414724.0.138457269][414724.0.138457271]'
  Description: 'Json格式字符串格式的Value'
  ValueType: String
}
_Main/UI/MacroPlannerWebApp/Component_Form234/_ROOT_Component_FrmOrderResultEx#234.def
@@ -40,6 +40,7 @@
  Properties:
  [
    Description: '订单冲减后列表展示'
    Image: 'NAV_REDO_LIGHT_BLUE'
    Title: '订单冲减后列表展示'
  ]
}
_Main/UI/MacroPlannerWebApp/Component_FormHedgingOfLog/_ROOT_Component_FormHedgingOfLog.def
@@ -22,7 +22,7 @@
  Properties:
  [
    Description: '冲减结果-日志'
    Image: 'DOCUMENT_REFRESH'
    Title: '反签授权列表明细页'
    Image: 'NAV_REDO_LIGHT_BLUE'
    Title: '日志页面'
  ]
}
_Main/UI/MacroPlannerWebApp/Component_FormMaterialPurchase/_ROOT_Component_FormMaterialPurchase.def
@@ -49,7 +49,7 @@
  Properties:
  [
    Description: '授权/反签物料采购明细释放'
    Image: 'DOG'
    Image: 'NAV_REDO_LIGHT_BLUE'
    Title: '授权/反签物料采购明细释放'
  ]
}
_Main/UI/MacroPlannerWebApp/Component_FormReleaseRecord/_ROOT_Component_FormReleaseRecord.def
@@ -25,7 +25,7 @@
  Properties:
  [
    Description: '反签/授权物料发布版本明细'
    Image: 'BULL'
    Image: 'NAV_REDO_LIGHT_BLUE'
    Title: '反签/授权物料发布版本明细'
  ]
}
_Main/UI/MacroPlannerWebApp/Component_FrmAuthorizeAndCountersign/Component_PanelOptimizerGeneral718.def
ÎļþÒÑɾ³ý
_Main/UI/MacroPlannerWebApp/Component_FrmAuthorizeAndCountersign/Component_PanelTop0001#655.def
ÎļþÒÑɾ³ý
_Main/UI/MacroPlannerWebApp/Component_FrmAuthorizeAndCountersign/Component_PanelTop820.def
ÎļþÒÑɾ³ý
_Main/UI/MacroPlannerWebApp/Component_FrmAuthorizeAndCountersign/Response_OnCreated.def
ÎļþÒÑɾ³ý
_Main/UI/MacroPlannerWebApp/Component_FrmAuthorizeAndCountersign/Response_Panel261_btn_Cancel_FAAC_OnClick.def
ÎļþÒÑɾ³ý
_Main/UI/MacroPlannerWebApp/Component_FrmAuthorizeAndCountersign/Response_Panel261_btn_OK_FAAC_OnClick.def
ÎļþÒÑɾ³ý
_Main/UI/MacroPlannerWebApp/Component_FrmAuthorizeAndCountersign/_ROOT_Component_FrmAuthorizeAndCountersign.def
ÎļþÒÑɾ³ý
_Main/UI/MacroPlannerWebApp/Component_FrmAuthorizeAndCountersign_Material/Response_OnCreated.def
@@ -15,13 +15,16 @@
    [*
      // èŽ·å–é€‰æ‹©åŽçš„SKU
      SelectItem := select( MacroPlan,H_MessagePassing,Obj,Obj.FKey()="FrmMaterial" and Obj.ItemKey()="ListSelect");
      if(not isnull( SelectItem) and SelectItem.Value().Length()>0)
      if(not isnull( SelectItem))
      {
        StrValue := SelectItem.Value().Tokenize( ";");
        lb_SUK_FAACM.Text(StrValue.Element( 0));
        lb_MaterialCode_FAACM.Text(StrValue.Element( 1));
        lb_Unit_FAACM.Text(StrValue.Element( 2));
        lb_Operator_FAACM.Text(ApplicationMacroPlanner.GetUserName());
        if(SelectItem.Value().Length()>0)
        {
          StrValue := SelectItem.Value().Tokenize( ";");
          lb_SUK_FAACM.Text(StrValue.Element( 0));
          lb_MaterialCode_FAACM.Text(StrValue.Element( 1));
          lb_Unit_FAACM.Text(StrValue.Element( 2));
          lb_Operator_FAACM.Text(ApplicationMacroPlanner.GetUserName());
        }
      }
      // èŽ·å–é€‰æ‹©åŽçš„SKU
      SelectItem := select( MacroPlan,H_MessagePassing,Obj,Obj.FKey()="FrmOrderForecast" and Obj.ItemKey()="ListSelect");
_Main/UI/MacroPlannerWebApp/Component_FrmAuthorizeAndCountersign_Material/_ROOT_Component_FrmAuthorizeAndCountersign_Material.def
@@ -24,6 +24,7 @@
  Properties:
  [
    Description: '原材料半成品反签授权新增页'
    Image: 'NAV_REDO_LIGHT_BLUE'
    Title: '原材料半成品反签授权新增页'
  ]
}
_Main/UI/MacroPlannerWebApp/Component_FrmAuthorizeAndCountersign_Order/Component_Panel261#223.def
ÎļþÃû´Ó _Main/UI/MacroPlannerWebApp/Component_FrmAuthorizeAndCountersign/Component_Panel261.def ÐÞ¸Ä
@@ -1,13 +1,13 @@
Quintiq file version 2.0
Component Panel261
Component Panel261 id:Panel261_223
{
  #keys: '[414724.0.44249978]'
  #keys: '[414724.0.117732107]'
  BaseType: 'WebPanel'
  Children:
  [
    Component btn_OK_FAAC
    {
      #keys: '[414724.0.44279077]'
      #keys: '[414724.0.117732108]'
      BaseType: 'WebButton'
      Properties:
      [
@@ -18,7 +18,7 @@
    }
    Component btn_Cancel_FAAC
    {
      #keys: '[414724.0.44279090]'
      #keys: '[414724.0.117732109]'
      BaseType: 'WebButton'
      Properties:
      [
@@ -34,6 +34,6 @@
    Border: true
    FixedSize: true
    Orientation: 'horizontal'
    Taborder: 2
    Taborder: 10
  ]
}
_Main/UI/MacroPlannerWebApp/Component_FrmAuthorizeAndCountersign_Order/Component_Panel796.def
¶Ô±ÈÐÂÎļþ
@@ -0,0 +1,26 @@
Quintiq file version 2.0
Component Panel796
{
  #keys: '[414724.0.116871632]'
  BaseType: 'WebPanel'
  Children:
  [
    Component Label417
    {
      #keys: '[414724.0.115502113]'
      BaseType: 'WebLabel'
      Properties:
      [
        Description: '订单反潜授权新增页'
        Taborder: 0
        Text: '订单反潜授权新增页'
      ]
    }
  ]
  Properties:
  [
    Border: true
    FixedSize: true
    Taborder: 0
  ]
}
_Main/UI/MacroPlannerWebApp/Component_FrmAuthorizeAndCountersign_Order/Component_Panel989.def
¶Ô±ÈÐÂÎļþ
@@ -0,0 +1,24 @@
Quintiq file version 2.0
Component Panel989
{
  #keys: '[414724.0.115531444]'
  BaseType: 'WebPanel'
  Children:
  [
    Component ds_NeedDate id:ds_NeedDate_456
    {
      #keys: '[414724.0.117731536]'
      BaseType: 'WebDateSelector'
      Properties:
      [
        Label: '需求日期'
        Taborder: 0
      ]
    }
  ]
  Properties:
  [
    FixedSize: true
    Taborder: 1
  ]
}
_Main/UI/MacroPlannerWebApp/Component_FrmAuthorizeAndCountersign_Order/Component_PanelTop#217.def
ÎļþÃû´Ó _Main/UI/MacroPlannerWebApp/Component_FrmAuthorizeAndCountersign/Component_PanelTop.def ÐÞ¸Ä
@@ -1,13 +1,13 @@
Quintiq file version 2.0
Component PanelTop
Component PanelTop id:PanelTop_217
{
  #keys: '[414724.0.43072496]'
  #keys: '[414724.0.117731595]'
  BaseType: 'WebPanel'
  Children:
  [
    Component lb_SKUCode_FAAC
    {
      #keys: '[414724.0.43602743]'
      #keys: '[414724.0.117731596]'
      BaseType: 'WebLabel'
      Properties:
      [
@@ -22,6 +22,6 @@
  [
    FixedSize: true
    Orientation: 'horizontal'
    Taborder: 1
    Taborder: 2
  ]
}
_Main/UI/MacroPlannerWebApp/Component_FrmAuthorizeAndCountersign_Order/Component_PanelTop104#150.def
ÎļþÃû´Ó _Main/UI/MacroPlannerWebApp/Component_FrmAuthorizeAndCountersign/Component_PanelTop104.def ÐÞ¸Ä
@@ -1,20 +1,22 @@
Quintiq file version 2.0
Component PanelTop104
Component PanelTop104 id:PanelTop104_150
{
  #keys: '[414724.0.43764561]'
  #keys: '[414724.0.117731993]'
  BaseType: 'WebPanel'
  Children:
  [
    Component txt_CustomName_FAAC
    {
      #keys: '[414724.0.43764592]'
      #keys: '[414724.0.117731994]'
      BaseType: 'WebEditField'
      Properties:
      [
        Description: '客户名称'
        Enabled: false
        Label: '客户名称'
        NumberOfColumns: 30
        PlaceHolder: '请输入'
        ReadOnly: true
        Taborder: 0
      ]
    }
@@ -23,6 +25,6 @@
  [
    FixedSize: true
    Orientation: 'horizontal'
    Taborder: 7
    Taborder: 8
  ]
}
_Main/UI/MacroPlannerWebApp/Component_FrmAuthorizeAndCountersign_Order/Component_PanelTop264#19.def
ÎļþÃû´Ó _Main/UI/MacroPlannerWebApp/Component_FrmAuthorizeAndCountersign/Component_PanelTop264.def ÐÞ¸Ä
@@ -1,13 +1,13 @@
Quintiq file version 2.0
Component PanelTop264
Component PanelTop264 id:PanelTop264_19
{
  #keys: '[414724.0.43764392]'
  #keys: '[414724.0.117731831]'
  BaseType: 'WebPanel'
  Children:
  [
    Component lb_Util_FAAC
    {
      #keys: '[414724.0.43764416]'
      #keys: '[414724.0.117731832]'
      BaseType: 'WebLabel'
      Properties:
      [
@@ -23,6 +23,6 @@
  [
    FixedSize: true
    Orientation: 'horizontal'
    Taborder: 4
    Taborder: 5
  ]
}
_Main/UI/MacroPlannerWebApp/Component_FrmAuthorizeAndCountersign_Order/Component_PanelTop360#136.def
ÎļþÃû´Ó _Main/UI/MacroPlannerWebApp/Component_FrmAuthorizeAndCountersign/Component_PanelTop360.def ÐÞ¸Ä
@@ -1,13 +1,13 @@
Quintiq file version 2.0
Component PanelTop360
Component PanelTop360 id:PanelTop360_136
{
  #keys: '[414724.0.43764343]'
  #keys: '[414724.0.117731775]'
  BaseType: 'WebPanel'
  Children:
  [
    Component np_Qty_FAAC
    {
      #keys: '[414724.0.43764374]'
      #keys: '[414724.0.117731776]'
      BaseType: 'WebNumberPicker'
      Properties:
      [
@@ -24,6 +24,6 @@
  [
    FixedSize: true
    Orientation: 'horizontal'
    Taborder: 3
    Taborder: 4
  ]
}
_Main/UI/MacroPlannerWebApp/Component_FrmAuthorizeAndCountersign_Order/Component_PanelTop597#324.def
ÎļþÃû´Ó _Main/UI/MacroPlannerWebApp/Component_FrmAuthorizeAndCountersign/Component_PanelTop597.def ÐÞ¸Ä
@@ -1,13 +1,13 @@
Quintiq file version 2.0
Component PanelTop597
Component PanelTop597 id:PanelTop597_324
{
  #keys: '[414724.0.43764439]'
  #keys: '[414724.0.117731885]'
  BaseType: 'WebPanel'
  Children:
  [
    Component ddsl_OperateType_FAAC
    {
      #keys: '[414724.0.44398642]'
      #keys: '[414724.0.117731886]'
      BaseType: 'WebDropDownStringList'
      Properties:
      [
@@ -23,6 +23,6 @@
  [
    FixedSize: true
    Orientation: 'horizontal'
    Taborder: 5
    Taborder: 6
  ]
}
_Main/UI/MacroPlannerWebApp/Component_FrmAuthorizeAndCountersign_Order/Component_PanelTop612#612.def
ÎļþÃû´Ó _Main/UI/MacroPlannerWebApp/Component_FrmAuthorizeAndCountersign/Component_PanelTop612.def ÐÞ¸Ä
@@ -1,13 +1,13 @@
Quintiq file version 2.0
Component PanelTop612
Component PanelTop612 id:PanelTop612_612
{
  #keys: '[414724.0.43764662]'
  #keys: '[414724.0.117732047]'
  BaseType: 'WebPanel'
  Children:
  [
    Component lb_Operator_FAAC
    {
      #keys: '[414724.0.43764687]'
      #keys: '[414724.0.117732048]'
      BaseType: 'WebLabel'
      Properties:
      [
@@ -23,6 +23,6 @@
  [
    FixedSize: true
    Orientation: 'horizontal'
    Taborder: 8
    Taborder: 9
  ]
}
_Main/UI/MacroPlannerWebApp/Component_FrmAuthorizeAndCountersign_Order/Component_PanelTop744#568.def
ÎļþÃû´Ó _Main/UI/MacroPlannerWebApp/Component_FrmAuthorizeAndCountersign/Component_PanelTop744.def ÐÞ¸Ä
@@ -1,13 +1,13 @@
Quintiq file version 2.0
Component PanelTop744
Component PanelTop744 id:PanelTop744_568
{
  #keys: '[414724.0.43764285]'
  #keys: '[414724.0.117731719]'
  BaseType: 'WebPanel'
  Children:
  [
    Component lb_SKUName_FAAC
    {
      #keys: '[414724.0.43764315]'
      #keys: '[414724.0.117731720]'
      BaseType: 'WebLabel'
      Properties:
      [
@@ -22,6 +22,6 @@
  [
    FixedSize: true
    Orientation: 'horizontal'
    Taborder: 2
    Taborder: 3
  ]
}
_Main/UI/MacroPlannerWebApp/Component_FrmAuthorizeAndCountersign_Order/Component_PanelTop846#618.def
ÎļþÃû´Ó _Main/UI/MacroPlannerWebApp/Component_FrmAuthorizeAndCountersign/Component_PanelTop846.def ÐÞ¸Ä
@@ -1,19 +1,21 @@
Quintiq file version 2.0
Component PanelTop846
Component PanelTop846 id:PanelTop846_618
{
  #keys: '[414724.0.43764508]'
  #keys: '[414724.0.117731939]'
  BaseType: 'WebPanel'
  Children:
  [
    Component txt_CustomID_FAAC
    {
      #keys: '[414724.0.43764542]'
      #keys: '[414724.0.117731940]'
      BaseType: 'WebEditField'
      Properties:
      [
        Enabled: false
        Label: '客户ID'
        NumberOfColumns: 30
        PlaceHolder: '请输入'
        ReadOnly: true
        Taborder: 0
      ]
    }
@@ -22,7 +24,7 @@
  [
    FixedSize: true
    Orientation: 'horizontal'
    Taborder: 6
    Taborder: 7
    Visible: false
  ]
}
_Main/UI/MacroPlannerWebApp/Component_FrmAuthorizeAndCountersign_Order/Response_OnCreated.def
¶Ô±ÈÐÂÎļþ
@@ -0,0 +1,43 @@
Quintiq file version 2.0
#parent: #root
Response OnCreated () id:Response_FrmAuthorizeAndCountersign_Order_OnCreated
{
  #keys: '[414724.0.117762728]'
  CanBindMultiple: false
  DefinitionID: 'Responsedef_WebComponent_OnCreated'
  QuillAction
  {
    Body:
    [*
      // éœ€æ±‚日期,默认下一个星期五
      ds_NeedDate.Date(H_FunctionClass::SM_GetNextFriday());
      // èŽ·å–é€‰æ‹©åŽçš„SKU
      SelectItem := select( MacroPlan,H_MessagePassing,Obj,Obj.FKey()="FrmOrderForecast" and Obj.ItemKey()="ListSelect");
      if(not isnull( SelectItem))
      {
        if(SelectItem.ValueJsonString().Length()>0)
        {
          // å¾—到选中的预测订单
          SelForecast := JSON::Parse( SelectItem.ValueJsonString());
          lb_SKUCode_FAAC.Text(SelForecast.Get( "SKU").GetString());
          lb_SKUName_FAAC.Text("产品");
          lb_Util_FAAC.Text(SelForecast.Get( "Util").GetString());
          txt_CustomID_FAAC.Text(SelForecast.Get( "CustomCode").GetString());
          txt_CustomName_FAAC.Text(SelForecast.Get( "CustomName").GetString());
          lb_Operator_FAAC.Text(ApplicationMacroPlanner.GetUserName());
      //    StrValue := SelectItem.Value().Tokenize( ";");
      //    lb_SKUCode_FAAC.Text(StrValue.Element( 0));
      //    lb_SKUName_FAAC.Text("产品");
      //    lb_Operator_FAAC.Text("");
      //    lb_Util_FAAC.Text(StrValue.Element( 1));
      //    txt_CustomID_FAAC.Text(StrValue.Element( 2));
      //    txt_CustomName_FAAC.Text(StrValue.Element( 3));
      //    lb_Operator_FAAC.Text(ApplicationMacroPlanner.GetUserName());
        }
      }
    *]
    GroupServerCalls: false
  }
}
_Main/UI/MacroPlannerWebApp/Component_FrmAuthorizeAndCountersign_Order/Response_Panel261_223_btn_Cancel_FAAC_OnClick.def
¶Ô±ÈÐÂÎļþ
@@ -0,0 +1,16 @@
Quintiq file version 2.0
#parent: Panel261_223/btn_Cancel_FAAC
Response OnClick () id:Response_Panel261_223_btn_Cancel_FAAC_OnClick
{
  #keys: '[414724.0.117732105]'
  CanBindMultiple: false
  DefinitionID: 'Responsedef_WebButton_OnClick'
  QuillAction
  {
    Body:
    [*
      FrmAuthorizeAndCountersign_Order.Close();
    *]
    GroupServerCalls: false
  }
}
_Main/UI/MacroPlannerWebApp/Component_FrmAuthorizeAndCountersign_Order/Response_Panel261_223_btn_OK_FAAC_OnClick.def
¶Ô±ÈÐÂÎļþ
@@ -0,0 +1,37 @@
Quintiq file version 2.0
#parent: Panel261_223/btn_OK_FAAC
Response OnClick () id:Response_Panel261_223_btn_OK_FAAC_OnClick
{
  #keys: '[414724.0.117732106]'
  CanBindMultiple: false
  DefinitionID: 'Responsedef_WebButton_OnClick'
  Precondition:
  [*
    return not isnull( MacroPlan);
  *]
  QuillAction
  {
    Body:
    [*
      // æ•°é‡
      Qty := [Number]np_Qty_FAAC.Number().Round( 0);
      OperateMsg :="";
      OperateResult := H_FunctionClass::SM_OrderReverseOrAuthorize(  MacroPlan,lb_Util_FAAC.Text() ,"-",ds_NeedDate.Date() ,txt_CustomID_FAAC.Text(),lb_SKUCode_FAAC.Text(),Qty,
                                                            lb_Operator_FAAC.Text(),txt_CustomName_FAAC.Text(),OperateMsg,ddsl_OperateType_FAAC.Text());
      if( OperateResult)
      {
        FrmAuthorizeAndCountersign_Order.Close();
        if( OperateMsg.Length()>0)
        {
            WebMessageBox::Success( OperateMsg);
        }
      }
      else
      {
        WebMessageBox::Warning( OperateMsg);
      }
    *]
    GroupServerCalls: false
  }
}
_Main/UI/MacroPlannerWebApp/Component_FrmAuthorizeAndCountersign_Order/_ROOT_Component_FrmAuthorizeAndCountersign_Order.def
¶Ô±ÈÐÂÎļþ
@@ -0,0 +1,28 @@
Quintiq file version 2.0
#root
#parent: MacroPlannerWebApp
OrphanComponent FrmAuthorizeAndCountersign_Order
{
  #keys: '[414724.0.115523082]'
  BaseType: 'WebForm'
  Children:
  [
    #child: Panel796
    #child: Panel989
    #child: PanelTop_217
    #child: PanelTop744_568
    #child: PanelTop360_136
    #child: PanelTop264_19
    #child: PanelTop597_324
    #child: PanelTop846_618
    #child: PanelTop104_150
    #child: PanelTop612_612
    #child: Panel261_223
  ]
  Properties:
  [
    Description: '原材料半成品反签授权新增页'
    Image: 'NAV_REDO_LIGHT_BLUE'
    Title: '订单反签授权新增页'
  ]
}
_Main/UI/MacroPlannerWebApp/Component_FrmMaterial/Component_Panel418.def
@@ -48,6 +48,23 @@
        Label: '新增反签/授权'
        Taborder: 3
      ]
      ResponseDefinitions:
      [
        ResponseDefinition OnClick id:Responsedef_Panel418_btn_Add_FM_OnClick
        {
          #keys: '[414724.0.145266825]'
          IsInherited: false
          ResponseType: 'OnClick'
          Arguments:
          [
            ResponseDefinitionArgument selection
            {
              #keys: '[271.0.74853915]'
              Binding: 'List832.Selection()'
            }
          ]
        }
      ]
    }
  ]
  Properties:
_Main/UI/MacroPlannerWebApp/Component_FrmMaterial/Response_OnCreated.def
@@ -2,20 +2,25 @@
#parent: #root
Response OnCreated () id:Response_FrmMaterial_OnCreated
{
  #keys: '[414724.0.93205703]'
  #keys: '[414724.0.118802220]'
  CanBindMultiple: false
  DefinitionID: 'Responsedef_WebComponent_OnCreated'
  QuillAction
  {
    Body:
    [*
      txtSaveForecastData_FM.Text("");
      // èŽ·å–é€‰æ‹©åŽçš„SKU
      SelectItem := select( MacroPlan,H_MessagePassing,Obj,Obj.FKey()="FrmOrderForecast" and Obj.ItemKey()="ListSelect");
      if(not isnull( SelectItem) and SelectItem.Value().Length()>0)
      if(not isnull( SelectItem))
      {
        StrValue := SelectItem.Value().Tokenize( ";");
        lb_SUK_FM.Text(StrValue.Element( 0));
        de_dh_FM_ProductMP.FixedFilter( "object.ParentID()="+lb_SUK_FM.Text());
        if( SelectItem.ValueJsonString().Length()>0)
        {
          txtSaveForecastData_FM.Text(  SelectItem.ValueJsonString());
          JSelect := JSON::Parse( SelectItem.ValueJsonString());
          lb_SUK_FM.Text(JSelect.Get( "SKU").GetString());
          de_dh_FM_ProductMP.FixedFilter( "object.ID() = " + JSelect.Get( "SKU").GetString().AsQUILL());
        }
      }
    *]
    GroupServerCalls: false
_Main/UI/MacroPlannerWebApp/Component_FrmMaterial/Response_Panel418_btn_Add_FM_OnClick#975.def
¶Ô±ÈÐÂÎļþ
@@ -0,0 +1,28 @@
Quintiq file version 2.0
#parent: Panel418/btn_Add_FM
Response OnClick () id:Response_Panel418_btn_Add_FM_OnClick_975
{
  #keys: '[414724.0.145238844]'
  CanBindMultiple: false
  DefinitionID => /Panel418/Responsedef_Panel418_btn_Add_FM_OnClick
  Precondition:
  [*
    return not isnull( MacroPlan);
  *]
  QuillAction
  {
    Body:
    [*
      SelectItem :=  select( MacroPlan,H_MessagePassing,Obj,Obj.FKey()="FrmMaterial" and Obj.ItemKey()="ListSelect");
      if( isnull( SelectItem))
      {
         MacroPlan.H_MessagePassing(relnew,FKey :="FrmMaterial",ItemKey := "ListSelect",Value := "");
      }
      else
      {
        //SelectItem.ValueJsonString()
      }
    *]
    GroupServerCalls: false
  }
}
_Main/UI/MacroPlannerWebApp/Component_FrmMaterial/Response_Panel418_btn_Add_FM_OnClick.def
@@ -13,7 +13,7 @@
  {
    Body:
    [*
      Application.OpenForm( "FrmAuthorizeAndCountersign_Material","popout");
      Application.OpenForm( "FrmAuthorizeAndCountersign_Material","modal");
    *]
    GroupServerCalls: false
  }
_Main/UI/MacroPlannerWebApp/Component_FrmMaterial/_ROOT_Component_FrmMaterial.def
@@ -35,10 +35,25 @@
        Taborder: 2
      ]
    }
    Component txtSaveForecastData_FM
    {
      #keys: '[414724.0.143737386]'
      BaseType: 'WebEditField'
      Properties:
      [
        Description: '存储所选物料信息'
        Enabled: false
        ReadOnly: true
        Taborder: 4
        Visible: false
      ]
    }
  ]
  Properties:
  [
    Description: '原料列表页'
    Image: 'NAV_REDO_LIGHT_BLUE'
    MinimumRows: 50
    Title: '原料列表页'
  ]
}
_Main/UI/MacroPlannerWebApp/Component_FrmOrderForecast/Component_Panel351.def
¶Ô±ÈÐÂÎļþ
@@ -0,0 +1,84 @@
Quintiq file version 2.0
Component Panel351
{
  #keys: '[414724.0.115504403]'
  BaseType: 'WebPanel'
  Children:
  [
    Component btn_Add_Order_FOF449
    {
      #keys: '[414724.0.115504404]'
      BaseType: 'WebButton'
      Properties:
      [
        Description: '订单新增反签/授权'
        Label: '订单新增反签/授权'
        Taborder: 1
      ]
      ResponseDefinitions:
      [
        ResponseDefinition OnClick id:Responsedef_Panel351_btn_Add_Order_FOF449_OnClick
        {
          #keys: '[414724.0.141224456]'
          IsInherited: false
          ResponseType: 'OnClick'
          Arguments:
          [
            ResponseDefinitionArgument selection
            {
              #keys: '[271.0.41037309]'
              Binding: 'liH_Forecast.Selection()'
            }
          ]
        }
      ]
    }
    Component btn_Add_Material_FOF503
    {
      #keys: '[414724.0.115504405]'
      BaseType: 'WebButton'
      Properties:
      [
        Description: '原料新增反签/授权'
        Label: '原料新增反签/授权'
        Taborder: 2
      ]
      ResponseDefinitions:
      [
        ResponseDefinition OnClick id:Responsedef_Panel351_btn_Add_Material_FOF503_OnClick
        {
          #keys: '[414724.0.145304022]'
          IsInherited: false
          ResponseType: 'OnClick'
          Arguments:
          [
            ResponseDefinitionArgument selection
            {
              #keys: '[271.0.68431130]'
              Binding: 'liH_Forecast.Selection()'
            }
          ]
        }
      ]
    }
    Component btn_InitialData778
    {
      #keys: '[414724.0.115504406]'
      BaseType: 'WebButton'
      Properties:
      [
        Description: '加载数据(假的,后续需要对接数据)'
        Label: '加载预测订单数据'
        Taborder: 0
        Visible: false
      ]
    }
  ]
  Properties:
  [
    Alignment: 'trailing'
    FixedSize: true
    Orientation: 'horizontal'
    Taborder: 1
  ]
}
_Main/UI/MacroPlannerWebApp/Component_FrmOrderForecast/Component_Panel383.def
@@ -48,5 +48,6 @@
    MinimumColumns: 80
    Orientation: 'horizontal'
    Taborder: 0
    Visible: false
  ]
}
_Main/UI/MacroPlannerWebApp/Component_FrmOrderForecast/Component_Panel647.def
@@ -36,6 +36,7 @@
        Description: '加载数据(假的,后续需要对接数据)'
        Label: '加载预测订单数据'
        Taborder: 0
        Visible: false
      ]
    }
  ]
@@ -43,7 +44,6 @@
  [
    Alignment: 'trailing'
    FixedSize: true
    MinimumColumns: 20
    Orientation: 'horizontal'
    Taborder: 1
  ]
_Main/UI/MacroPlannerWebApp/Component_FrmOrderForecast/Component_Panel849.def
@@ -10,8 +10,10 @@
  ]
  Properties:
  [
    Description: '已经隐藏,暂未使用'
    FixedSize: true
    Orientation: 'horizontal'
    Taborder: 1
    Taborder: 2
    Visible: false
  ]
}
_Main/UI/MacroPlannerWebApp/Component_FrmOrderForecast/Component_liH_Forecast.def
@@ -28,7 +28,7 @@
      ]
      Properties:
      [
        Columns: '[{"attribute":{"classtype":"WebApiDefinitionAttributeDataMember","columnid":"OrderCode","title":"OrderCode","subtotals":"","tooltip":"","width":-1,"display":"shown","editable":false,"attribute":"OrderCode"}},{"attribute":{"classtype":"WebApiDefinitionAttributeDataMember","columnid":"SKU","title":"SKU","subtotals":"","tooltip":"","width":-1,"display":"shown","editable":false,"attribute":"SKU"}},{"attribute":{"classtype":"WebApiDefinitionAttributeDataMember","columnid":"ForecastQty","title":"ForecastQty","subtotals":"","tooltip":"","width":-1,"display":"shown","editable":false,"attribute":"ForecastQty"}},{"attribute":{"classtype":"WebApiDefinitionAttributeDataMember","columnid":"NeedTime","title":"NeedTime","subtotals":"","tooltip":"","width":-1,"display":"shown","editable":false,"attribute":"NeedTime"}},{"attribute":{"classtype":"WebApiDefinitionAttributeDataMember","columnid":"Util","title":"Util","subtotals":"","tooltip":"","width":-1,"display":"shown","editable":false,"attribute":"Util"}},{"attribute":{"classtype":"WebApiDefinitionAttributeDataMember","columnid":"CustomName","title":"CustomName","subtotals":"","tooltip":"","width":-1,"display":"shown","editable":false,"attribute":"CustomName"}},{"attribute":{"classtype":"WebApiDefinitionAttributeDataMember","columnid":"Department","title":"Department","subtotals":"","tooltip":"","width":-1,"display":"shown","editable":false,"attribute":"Department"}}]'
        Columns: '[{"attribute":{"classtype":"WebApiDefinitionAttributeDataMember","columnid":"OrderCode","title":"订单编号","subtotals":"","tooltip":"","width":-1,"display":"shown","editable":false,"attribute":"OrderCode"}},{"attribute":{"classtype":"WebApiDefinitionAttributeDataMember","columnid":"SKU","title":"SKU编码","subtotals":"","tooltip":"","width":-1,"display":"shown","editable":false,"attribute":"SKU"}},{"attribute":{"classtype":"WebApiDefinitionAttributeDataMember","columnid":"ForecastQty","title":"预测数量","subtotals":"","tooltip":"","width":-1,"display":"shown","editable":false,"attribute":"ForecastQty"}},{"attribute":{"classtype":"WebApiDefinitionAttributeDataMember","columnid":"NeedTime","title":"需求时间","subtotals":"","tooltip":"","width":-1,"display":"shown","editable":false,"attribute":"NeedTime"}},{"attribute":{"classtype":"WebApiDefinitionAttributeDataMember","columnid":"Util","title":"单位","subtotals":"","tooltip":"","width":-1,"display":"shown","editable":false,"attribute":"Util"}},{"attribute":{"classtype":"WebApiDefinitionAttributeDataMember","columnid":"CustomName","title":"客户名称","subtotals":"","tooltip":"","width":-1,"display":"shown","editable":false,"attribute":"CustomName"}},{"attribute":{"classtype":"WebApiDefinitionAttributeDataMember","columnid":"Department","title":"销售部门","subtotals":"","tooltip":"","width":-1,"display":"shown","editable":false,"attribute":"Department"}}]'
        ContextMenu: 'listContextMenu367'
        Taborder: 2
      ]
@@ -36,6 +36,6 @@
  ]
  Properties:
  [
    Taborder: 6
    Taborder: 7
  ]
}
_Main/UI/MacroPlannerWebApp/Component_FrmOrderForecast/Component_list_ForecastView_FOF#670.def
@@ -37,7 +37,7 @@
  ]
  Properties:
  [
    Taborder: 4
    Taborder: 5
    Visible: false
  ]
}
_Main/UI/MacroPlannerWebApp/Component_FrmOrderForecast/Response_OnClose.def
@@ -13,7 +13,8 @@
      SelectItem := select( MacroPlan,H_MessagePassing,Obj,Obj.FKey()="FrmOrderForecast" and Obj.ItemKey()="ListSelect");
      if( not isnull( SelectItem))
      {
        SelectItem.Value("");
        SelectItem.Value("");
        SelectItem.ValueJsonString("");
      }
    *]
    GroupServerCalls: false
_Main/UI/MacroPlannerWebApp/Component_FrmOrderForecast/Response_OnCreated.def
@@ -11,41 +11,12 @@
    [*
      // åˆå§‹åŒ–查询参数月份
      ds_Month_FOF.Date(Date::ActualDate());
      // é¢„测数据2此处理(筛选+客户名称提取)
      if( MacroPlan.H_Forecast(relget ).Size()>0)
      // åˆå§‹åŒ–预测数据
      JResult := H_FunctionClass::SM_InitialForcastData( MacroPlan);
      if(not JResult.Get( "Status").GetBoolean())
      {
        MacroPlan.H_Forecast(relget ).Delete( 0,MacroPlan.H_Forecast(relget ).Size()-1);
          WebMessageBox::Warning( JResult.Get( "Msg").GetString());
      }
      //AllData:= selectset( MacroPlan, Product_MP.SalesDemand.astype( Forecast ),object,object.EndDate().DateTime().Date() >= Date::ActualDate().StartOfMonth()
      //                     and object.EndDate().DateTime().Date() <= Date::ActualDate().StartOfNextMonth().StartOfNextMonth().StartOfNextMonth().StartOfNextMonth()
      //                     and object.Quantity()>0 );
      //
      //CustomName:="";
      //DepartMent:="";
      //idx:=0;
      //traverse( AllData,Elements,Obj,not isnull(Obj))
      //{
      //  idx:=Obj.SalesSegmentName().FindString( "_",0);
      //  if(idx>0)
      //  {
      //    DepartMent:=Obj.SalesSegmentName().SubString( 0,idx+1);
      //    CustomName := Obj.SalesSegmentName().SubString( idx+1, Obj.SalesSegmentName().Length() - (idx+1));
      //  }
      //  else
      //  {
      //    CustomName :=Obj.SalesSegmentName();
      //  }
      //
      //   ArrayData:=Obj.SalesSegmentName().SubString( 0,Obj.SalesSegmentName().FindString( "_",0)+1);
      //   MacroPlan.H_Forecast(relnew,OrderCode := H_FunctionClass::SM_GenerateID( "OF"),
      //                          SKU := Obj.ProductID(),
      //                          CustomCode := CustomName,
      //                         CustomName := CustomName,
      //                         Util:=Obj.UnitOfMeasureName(),
      //                         NeedTime:=Obj.EndDate(),
      //                         ForecastQty:=[Number]Obj.Quantity().Round( 0),
      //                         Department:=DepartMent);
      //}
    *]
    GroupServerCalls: false
  }
_Main/UI/MacroPlannerWebApp/Component_FrmOrderForecast/Response_Panel351_btn_Add_Material_FOF503_OnClick#222.def
¶Ô±ÈÐÂÎļþ
@@ -0,0 +1,43 @@
Quintiq file version 2.0
#parent: Panel351/btn_Add_Material_FOF503
Response OnClick (
  H_Forecast selection
) id:Response_Panel351_btn_Add_Material_FOF503_OnClick_222
{
  #keys: '[414724.0.145178766]'
  CanBindMultiple: false
  DefinitionID => /Panel351/Responsedef_Panel351_btn_Add_Material_FOF503_OnClick
  QuillAction
  {
    Body:
    [*
      if( not isnull( selection))
      {
        SelectItem :=  select( MacroPlan,H_MessagePassing,Obj,Obj.FKey()="FrmOrderForecast" and Obj.ItemKey()="ListSelect");
        if( isnull( SelectItem))
        {
           MacroPlan.H_MessagePassing(relnew,FKey :="FrmOrderForecast",ItemKey := "ListSelect",
                                       Value := selection.SKU()+";"+selection.Util()+";"+selection.CustomCode()+";"+selection.CustomName(),
                                       ValueJsonString := JSON::Object().Add( "SKU",selection.SKU())
                                                                         .Add( "Util",selection.Util())
                                                                         .Add( "CustomCode",selection.CustomCode())
                                                                         .Add( "CustomName",selection.CustomName()).Build().AsString());
        }
        else
        {
          SelectItem.Value(selection.SKU()+";"+selection.Util()+";"+selection.CustomCode()+";"+selection.CustomName());
          SelectItem.ValueJsonString(JSON::Object().Add( "SKU",selection.SKU())
                                   .Add( "Util",selection.Util())
                                   .Add( "CustomCode",selection.CustomCode())
                                   .Add( "CustomName",selection.CustomName()).Build().AsString());
        }
        Application.OpenForm( "FrmMaterial","popout");
      }
      else
      {
        WebMessageBox::Information( "请选择一项预测后再点击按钮!");
      }
    *]
    GroupServerCalls: false
  }
}
_Main/UI/MacroPlannerWebApp/Component_FrmOrderForecast/Response_Panel351_btn_Add_Order_FOF449_OnClick#880.def
¶Ô±ÈÐÂÎļþ
@@ -0,0 +1,43 @@
Quintiq file version 2.0
#parent: Panel351/btn_Add_Order_FOF449
Response OnClick (
  H_Forecast selection
) id:Response_Panel351_btn_Add_Order_FOF449_OnClick_880
{
  #keys: '[414724.0.141244111]'
  CanBindMultiple: false
  DefinitionID => /Panel351/Responsedef_Panel351_btn_Add_Order_FOF449_OnClick
  QuillAction
  {
    Body:
    [*
      if( not isnull( selection))
      {
        SelectItem :=  select( MacroPlan,H_MessagePassing,Obj,Obj.FKey()="FrmOrderForecast" and Obj.ItemKey()="ListSelect");
        if( isnull( SelectItem))
        {
           MacroPlan.H_MessagePassing(relnew,FKey :="FrmOrderForecast",ItemKey := "ListSelect",
                                       Value := selection.SKU()+";"+selection.Util()+";"+selection.CustomCode()+";"+selection.CustomName(),
                                       ValueJsonString := JSON::Object().Add( "SKU",selection.SKU())
                                                                         .Add( "Util",selection.Util())
                                                                         .Add( "CustomCode",selection.CustomCode())
                                                                         .Add( "CustomName",selection.CustomName()).Build().AsString());
        }
        else
        {
          SelectItem.Value(selection.SKU()+";"+selection.Util()+";"+selection.CustomCode()+";"+selection.CustomName());
          SelectItem.ValueJsonString(JSON::Object().Add( "SKU",selection.SKU())
                                   .Add( "Util",selection.Util())
                                   .Add( "CustomCode",selection.CustomCode())
                                   .Add( "CustomName",selection.CustomName()).Build().AsString());
        }
        Application.OpenForm( "FrmAuthorizeAndCountersign_Order","modal");
      }
      else
      {
        WebMessageBox::Information( "请选择一项预测后再点击按钮!");
      }
    *]
    GroupServerCalls: false
  }
}
_Main/UI/MacroPlannerWebApp/Component_FrmOrderForecast/Response_Panel351_btn_InitialData778_OnClick#971.def
¶Ô±ÈÐÂÎļþ
@@ -0,0 +1,35 @@
Quintiq file version 2.0
#parent: Panel351/btn_InitialData778
Response OnClick () id:Response_Panel351_btn_InitialData778_OnClick_971
{
  #keys: '[414724.0.141222418]'
  CanBindMultiple: false
  DefinitionID: 'Responsedef_WebButton_OnClick'
  QuillAction
  {
    Body:
    [*
      //// æ²¡æœ‰ç”¨çš„æŒ‰é’®å’Œå‡½æ•°ï¼Œåªä¸ºäº†æµ‹è¯•生成假数据。
      //StrCustoms:="XM_2023,小米;HW_2023,华为;OV_2023,VIVO;OP_2023,OPPO;HX_2023,æµ·ä¿¡;YJ_2023,一加;HE_2023,海尔;GL_2023,格力;";
      //ArrayCustom := StrCustoms.Tokenize( ";"); //8个客户
      //idx :=0;
      //for( i:=0;i<20;i:=i+1)
      //{
      //  idx :=Number::Random( 0,7);
      //  arrCustomInfo := ArrayCustom.Element( idx).Tokenize( ",");
      //  MacroPlan.H_Forecast(relnew, CustomName := arrCustomInfo.Element( 1),CustomCode := arrCustomInfo.Element( 0),ForecastQty := Number::Random( 100,5000),
      //                        Department := "销售1部",NeedTime := Date::ActualDate(),OrderCode := H_FunctionClass::SM_GenerateID( "OF") ,SKU := "SKU-CP-2023-N"+(Number::Random( 1000,9999)).AsQUILL(),Util := "PCS");
      //
      //}
      //// ç”Ÿæˆé¢„测 å®žæ—¶æ•°æ®ï¼Œåç­¾æ•°æ®ï¼ŒæŽˆæƒæ•°æ®ï¼ˆåç­¾ æŽˆæƒé»˜è®¤ä¸º0,对自动创建,这里不再添加)
      // traverse(MacroPlan,H_Forecast ,Obj,not isnull(Obj) )
      //{
      //  MacroPlan.H_OrderForecastRealQty(relnew,CustomID := Obj.CustomCode(),CustomName := Obj.CustomName(),ForecatsQty := Obj.ForecastQty(),
      //                                    ForecatsRealQty := Obj.ForecastQty(),ID := H_FunctionClass::SM_GenerateID( "OF"),Month := Date::ActualDate(),
      //                                    OrderCode := Obj.OrderCode(),SKU := Obj.SKU(),Unit := Obj.Util());
      //
      //}
    *]
    GroupServerCalls: false
  }
}
_Main/UI/MacroPlannerWebApp/Component_FrmOrderForecast/Response_Panel647_btn_Add_Order_FOF_OnClick.def
@@ -16,7 +16,7 @@
      SelectItem := select( MacroPlan,H_MessagePassing,Obj,Obj.FKey()="FrmOrderForecast" and Obj.ItemKey()="ListSelect");
      if(not isnull( SelectItem) and SelectItem.Value().Length()>0)
      {
        Application.OpenForm( "FrmAuthorizeAndCountersign","popout");
        Application.OpenForm( "FrmAuthorizeAndCountersign_Order","popout");
      }
      else
      {
_Main/UI/MacroPlannerWebApp/Component_FrmOrderForecast/Response_liH_Forecast_OnDoubleClick.def
@@ -14,9 +14,21 @@
      SelectItem :=  select( MacroPlan,H_MessagePassing,Obj,Obj.FKey()="FrmOrderForecast" and Obj.ItemKey()="ListSelect");
      if( isnull( SelectItem))
      {
         MacroPlan.H_MessagePassing(relnew,FKey :="FrmOrderForecast",ItemKey := "ListSelect",Value := "");
         MacroPlan.H_MessagePassing(relnew,FKey :="FrmOrderForecast",ItemKey := "ListSelect",
                                     Value := selection.SKU()+";"+selection.Util()+";"+selection.CustomCode()+";"+selection.CustomName(),
                                     ValueJsonString := JSON::Object().Add( "SKU",selection.SKU())
                                                                       .Add( "Util",selection.Util())
                                                                       .Add( "CustomCode",selection.CustomCode())
                                                                       .Add( "CustomName",selection.CustomName()).Build().AsString());
      }
      SelectItem.Value(selection.SKU()+";"+selection.Util()+";"+selection.CustomCode()+";"+selection.CustomName());
      else
      {
        SelectItem.Value(selection.SKU()+";"+selection.Util()+";"+selection.CustomCode()+";"+selection.CustomName());
        SelectItem.ValueJsonString(JSON::Object().Add( "SKU",selection.SKU())
                                 .Add( "Util",selection.Util())
                                 .Add( "CustomCode",selection.CustomCode())
                                 .Add( "CustomName",selection.CustomName()).Build().AsString());
      }
      Application.OpenForm( "FrmMaterial","popout");
    *]
    GroupServerCalls: false
_Main/UI/MacroPlannerWebApp/Component_FrmOrderForecast/Response_liH_Forecast_OnSelectionChanged.def
ÎļþÒÑɾ³ý
_Main/UI/MacroPlannerWebApp/Component_FrmOrderForecast/_ROOT_Component_FrmOrderForecast.def
@@ -43,7 +43,7 @@
      ]
      Properties:
      [
        Taborder: 3
        Taborder: 4
      ]
    }
    #child: Panel961
@@ -93,7 +93,7 @@
      ]
      Properties:
      [
        Taborder: 2
        Taborder: 3
      ]
    }
    Component dh_FOF_H_Forecast
@@ -118,15 +118,16 @@
      ]
      Properties:
      [
        Taborder: 5
        Taborder: 6
      ]
    }
    #child: liH_Forecast
    #child: Panel351
  ]
  Properties:
  [
    Description: '订单预测页面'
    Image: 'GOLDFISH'
    Image: 'NAV_REDO_LIGHT_BLUE'
    Title: '预测列表页'
  ]
}
_Main/UI/MacroPlannerWebApp/Component_FrmOrderResult/_ROOT_Component_FrmOrderResult.def
@@ -39,6 +39,7 @@
  Properties:
  [
    Description: '订单冲减过程及订单标签展示'
    Image: 'NAV_REDO_LIGHT_BLUE'
    Title: '订单冲减过程及订单标签展示'
  ]
}
_Main/UI/MacroPlannerWebApp/Component_FrmRAShow/Component_List696.def
¶Ô±ÈÐÂÎļþ
@@ -0,0 +1,41 @@
Quintiq file version 2.0
Component List696
{
  #keys: '[414724.0.118276730]'
  BaseType: 'WebList'
  Children:
  [
    Component DataExtractor838
    {
      #keys: '[414724.0.118276731]'
      BaseType: 'WebDataExtractor'
      Properties:
      [
        DataType: 'structured[H_MaterialHedgingResult]'
        Source: 'dh_FRAS'
        Taborder: 0
        Transformation: 'Elements'
      ]
    }
    #child: listActionBarPage112
    Component DataSetLevel187
    {
      #keys: '[414724.0.118276736]'
      BaseType: 'WebDataSetLevel'
      Children:
      [
        #child: listContextMenu660
      ]
      Properties:
      [
        Columns: '[{"attribute":{"classtype":"WebApiDefinitionAttributeDataMember","columnid":"SKU","title":"SKU","subtotals":"","tooltip":"","width":-1,"display":"shown","editable":false,"attribute":"SKU"}},{"attribute":{"classtype":"WebApiDefinitionAttributeDataMember","columnid":"MType","title":"MType","subtotals":"","tooltip":"","width":-1,"display":"shown","editable":false,"attribute":"MType"}},{"attribute":{"classtype":"WebApiDefinitionAttributeDataMember","columnid":"ReverseQty","title":"ReverseQty","subtotals":"","tooltip":"","width":-1,"display":"shown","editable":false,"attribute":"ReverseQty"}},{"attribute":{"classtype":"WebApiDefinitionAttributeDataMember","columnid":"AuthorizeQty","title":"AuthorizeQty","subtotals":"","tooltip":"","width":-1,"display":"shown","editable":false,"attribute":"AuthorizeQty"}},{"attribute":{"classtype":"WebApiDefinitionAttributeDataMember","columnid":"Unit","title":"Unit","subtotals":"","tooltip":"","width":-1,"display":"shown","editable":false,"attribute":"Unit"}},{"attribute":{"classtype":"WebApiDefinitionAttributeDataMember","columnid":"CustomerName","title":"CustomerName","subtotals":"","tooltip":"","width":-1,"display":"shown","editable":false,"attribute":"CustomerName"}}]'
        ContextMenu: 'listContextMenu660'
        Taborder: 2
      ]
    }
  ]
  Properties:
  [
    Taborder: 3
  ]
}
_Main/UI/MacroPlannerWebApp/Component_FrmRAShow/Component_Panel224.def
¶Ô±ÈÐÂÎļþ
@@ -0,0 +1,48 @@
Quintiq file version 2.0
Component Panel224
{
  #keys: '[414724.0.132480968]'
  BaseType: 'WebPanel'
  Children:
  [
    Component ds_Month_FRAS
    {
      #keys: '[414724.0.132481008]'
      BaseType: 'WebDateSelector'
      Properties:
      [
        Enabled: false
        Taborder: 0
        Visible: false
      ]
    }
    Component txt_QueryContent_FRAS
    {
      #keys: '[414724.0.132481038]'
      BaseType: 'WebEditField'
      Properties:
      [
        PlaceHolder: '模糊搜索'
        Taborder: 1
      ]
    }
    Component btn_Query_FRAS
    {
      #keys: '[414724.0.132481089]'
      BaseType: 'WebButton'
      Properties:
      [
        Image: 'VIEW'
        Label: '查询'
        Taborder: 2
      ]
    }
  ]
  Properties:
  [
    Alignment: 'trailing'
    FixedSize: true
    Orientation: 'horizontal'
    Taborder: 1
  ]
}
_Main/UI/MacroPlannerWebApp/Component_FrmRAShow/Component_Panel950.def
¶Ô±ÈÐÂÎļþ
@@ -0,0 +1,25 @@
Quintiq file version 2.0
Component Panel950
{
  #keys: '[414724.0.133671405]'
  BaseType: 'WebPanel'
  Children:
  [
    Component Label782
    {
      #keys: '[414724.0.133671432]'
      BaseType: 'WebLabel'
      Properties:
      [
        Taborder: 0
        Text: '反签和授权列表展示页'
      ]
    }
  ]
  Properties:
  [
    Border: true
    FixedSize: true
    Taborder: 0
  ]
}
_Main/UI/MacroPlannerWebApp/Component_FrmRAShow/Component_listActionBarPage112.def
ÎļþÃû´Ó _Main/UI/MacroPlannerWebApp/Component_FrmTEST/Component_listActionBarPage748.def ÐÞ¸Ä
@@ -1,7 +1,7 @@
Quintiq file version 2.0
Component listActionBarPage748
Component listActionBarPage112
{
  #keys: '[414724.0.58710450]'
  #keys: '[414724.0.118276733]'
  BaseType: 'listActionBarPage'
  Properties:
  [
_Main/UI/MacroPlannerWebApp/Component_FrmRAShow/Component_listContextMenu660.def
ÎļþÃû´Ó _Main/UI/MacroPlannerWebApp/Component_FrmTEST/Component_listContextMenu623.def ÐÞ¸Ä
@@ -1,7 +1,7 @@
Quintiq file version 2.0
Component listContextMenu623
Component listContextMenu660
{
  #keys: '[414724.0.58710455]'
  #keys: '[414724.0.118276738]'
  BaseType: 'listContextMenu'
  Properties:
  [
_Main/UI/MacroPlannerWebApp/Component_FrmRAShow/Response_OnCreated.def
¶Ô±ÈÐÂÎļþ
@@ -0,0 +1,16 @@
Quintiq file version 2.0
#parent: #root
Response OnCreated () id:Response_FrmRAShow_OnCreated
{
  #keys: '[414724.0.134602766]'
  CanBindMultiple: false
  DefinitionID: 'Responsedef_WebComponent_OnCreated'
  QuillAction
  {
    Body:
    [*
      ds_Month_FRAS.Date(Date::ActualDate());
    *]
    GroupServerCalls: false
  }
}
_Main/UI/MacroPlannerWebApp/Component_FrmRAShow/Response_Panel224_btn_Query_FRAS_OnClick.def
¶Ô±ÈÐÂÎļþ
@@ -0,0 +1,20 @@
Quintiq file version 2.0
#parent: Panel224/btn_Query_FRAS
Response OnClick () id:Response_Panel224_btn_Query_FRAS_OnClick
{
  #keys: '[414724.0.135920812]'
  CanBindMultiple: false
  DefinitionID: 'Responsedef_WebButton_OnClick'
  QuillAction
  {
    Body:
    [*
      de_dh_FRAS.FixedFilter( "object.ID().LikeUserLocale( " + txt_QueryContent_FRAS.Text().AsQUILL() + " )"
                                                   + " or " + "object.SKU().LikeUserLocale( " + txt_QueryContent_FRAS.Text().AsQUILL() + " )"
                                                   + " or " + "object.CustomerCode().LikeUserLocale( " + txt_QueryContent_FRAS.Text().AsQUILL() + " )"
                                                   + " or " + "object.CustomerName().LikeUserLocale( " + txt_QueryContent_FRAS.Text().AsQUILL() + " )"
                                                   );
    *]
    GroupServerCalls: false
  }
}
_Main/UI/MacroPlannerWebApp/Component_FrmRAShow/_ROOT_Component_FrmRAShow.def
@@ -5,8 +5,41 @@
{
  #keys: '[414724.0.87341476]'
  BaseType: 'WebForm'
  Children:
  [
    #child: List696
    Component dh_FRAS
    {
      #keys: '[414724.0.118276696]'
      BaseType: 'WebDataHolder'
      Databinding: 'structured[H_MaterialHedgingResult]*'
      Children:
      [
        Component de_dh_FRAS
        {
          #keys: '[414724.0.118276712]'
          BaseType: 'WebDataExtractor'
          Properties:
          [
            DataType: 'MacroPlan'
            Source: 'MacroPlan'
            Taborder: 0
            Transformation: 'H_MaterialHedgingResult'
          ]
        }
      ]
      Properties:
      [
        Taborder: 2
      ]
    }
    #child: Panel950
    #child: Panel224
  ]
  Properties:
  [
    Description: '原料反签和授权展示'
    Image: 'NAV_REDO_LIGHT_BLUE'
    Title: '反签和授权列表展示页'
  ]
}
_Main/UI/MacroPlannerWebApp/Component_FrmTEST/Component_ListData_FT#710.def
ÎļþÒÑɾ³ý
_Main/UI/MacroPlannerWebApp/Component_FrmTEST/Component_Panel675.def
ÎļþÒÑɾ³ý
_Main/UI/MacroPlannerWebApp/Component_FrmTEST/Response_Panel675_ButtonClear_OnClick.def
ÎļþÒÑɾ³ý
_Main/UI/MacroPlannerWebApp/Component_FrmTEST/_ROOT_Component_FrmTEST.def
ÎļþÒÑɾ³ý