lazhen
2024-11-14 7c445b476a69ee8083a0e5733565e13dc8c0d109
计划下发界面区分工厂
已重命名7个文件
已复制6个文件
已修改7个文件
已添加3个文件
294 ■■■■■ 文件已修改
_Main/BL/Type_AssemblyOnlinePlanPush/StaticMethod_GenerateData.qbl 4 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
_Main/BL/Type_CustomerDemandPPAIDS/StaticMethod_GenerateData.qbl 5 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
_Main/BL/Type_InterfaceDataset/Method_PublishPlanReportData.qbl 29 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
_Main/UI/MacroPlannerWebApp/Component_DialogCustomerDemandPPAIDS/Method_OnOK.def 4 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
_Main/UI/MacroPlannerWebApp/Component_DialogPublishPlan/Component_pnlAll.def 8 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
_Main/UI/MacroPlannerWebApp/Component_DialogPublishPlan/Component_pnlAllCC.def 12 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
_Main/UI/MacroPlannerWebApp/Component_DialogPublishPlan/Component_pnlAssembleOnlinePlan.def 8 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
_Main/UI/MacroPlannerWebApp/Component_DialogPublishPlan/Component_pnlAssembleOnlinePlanCC.def 12 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
_Main/UI/MacroPlannerWebApp/Component_DialogPublishPlan/Component_pnlContent.def 9 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
_Main/UI/MacroPlannerWebApp/Component_DialogPublishPlan/Component_pnlContentCC.def 20 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
_Main/UI/MacroPlannerWebApp/Component_DialogPublishPlan/Component_pnlContentDL.def 20 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
_Main/UI/MacroPlannerWebApp/Component_DialogPublishPlan/Component_pnlCustomDemand.def 8 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
_Main/UI/MacroPlannerWebApp/Component_DialogPublishPlan/Component_pnlCustomDemandCC.def 12 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
_Main/UI/MacroPlannerWebApp/Component_DialogPublishPlan/Component_pnlInventoryPlan.def 8 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
_Main/UI/MacroPlannerWebApp/Component_DialogPublishPlan/Component_pnlInventoryPlanCC.def 12 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
_Main/UI/MacroPlannerWebApp/Component_DialogPublishPlan/Component_pnlOfflinePlan.def 8 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
_Main/UI/MacroPlannerWebApp/Component_DialogPublishPlan/Component_pnlOfflinePlanCC.def 12 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
_Main/UI/MacroPlannerWebApp/Component_DialogPublishPlan/Component_pnlShiftPlan.def 8 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
_Main/UI/MacroPlannerWebApp/Component_DialogPublishPlan/Component_pnlShiftPlanCC.def 12 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
_Main/UI/MacroPlannerWebApp/Component_DialogPublishPlan/Method_OnOK.def 43 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
_Main/UI/MacroPlannerWebApp/Component_DialogPublishPlan/Response_pnlActions_btnOk_OnClick.def 6 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
_Main/UI/MacroPlannerWebApp/Component_DialogPublishPlan/Response_pnlAllCC_cbAllCC_OnChanged.def 28 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
_Main/UI/MacroPlannerWebApp/Component_DialogPublishPlan/Response_pnlAll_cbAll_OnChanged.def 6 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
_Main/BL/Type_AssemblyOnlinePlanPush/StaticMethod_GenerateData.qbl
@@ -3,6 +3,8 @@
StaticMethod GenerateData (
  InterfaceDataset interfaceDataset,
  const MacroPlan macroplan,
  Boolean iscc,
  Boolean isdl,
  String executor
)
{
@@ -30,6 +32,7 @@
      traverse( verison, Column, column, column.TimeUnit() = Translations::MP_GlobalParameters_Day() ){
        traverse( column, Cell, cell ){
          row              := cell.Row();
          if( ( iscc and row.Unit() = FinancialProductionReport::GetDefaultCCUnit() ) or ( isdl and row.Unit() = FinancialProductionReport::GetDefaultDLUnit() ) ){
          cd               :=interfaceDataset.AssemblyOnlinePlanPPPSPush( relnew, Product            := row.ProductID()
                                                                           , PlanningDate            := column.StartDate()
                                                                           , PlanningQty             := [Number]cell.Quantity()
@@ -45,6 +48,7 @@
        }
      }
    }
    }
    loginfo.TotalRow( loginfo.AssemblyOnlinePlanPPPSPush( relsize ) );
    AssemblyOnlinePlanPPPSPush::Publish( interfaceDataset, loginfo );
  *]
_Main/BL/Type_CustomerDemandPPAIDS/StaticMethod_GenerateData.qbl
@@ -3,6 +3,8 @@
StaticMethod GenerateData (
  InterfaceDataset interfaceDataset,
  const MacroPlan macroplan,
  Boolean iscc,
  Boolean isdl,
  String executor
)
{
@@ -26,7 +28,8 @@
                                                                 , Message                   := '客户需求(PPA+IDS)数据推送'
                                                                 , Last                      := true
                                                                  );
    traverse( interfaceDataset, CustomerDemandIDS.Row, row ){
    traverse( interfaceDataset, CustomerDemandIDS.Row, row, ( iscc and row.Factory() = FinancialProductionReport::GetDefaultCCUnit() )
              or ( isdl and row.Factory() = FinancialProductionReport::GetDefaultDLUnit() ) ){
      traverse( row, Cell, cell ){
        cd                  :=interfaceDataset.CustomerDemandPPAIDS( relnew, Product           := row.Name()
                                                                     , DemandDate              := cell.Column().StartDate()
_Main/BL/Type_InterfaceDataset/Method_PublishPlanReportData.qbl
@@ -2,11 +2,16 @@
#parent: #root
Method PublishPlanReportData (
  const MacroPlan macroplan,
  Boolean iscustomdemand,
  Boolean isofflineplan,
  Boolean isshiftplan,
  Boolean isassembleonlineplan,
  Boolean isinventoryplan,
  Boolean iscustomdemanddl,
  Boolean iscustomdemandcc,
  Boolean isofflineplandl,
  Boolean isofflineplancc,
  Boolean isshiftplandl,
  Boolean isshiftplancc,
  Boolean isassembleonlineplandl,
  Boolean isassembleonlineplancc,
  Boolean isinventoryplandl,
  Boolean isinventoryplancc,
  String executor
)
{
@@ -14,20 +19,20 @@
  TextBody:
  [*
    // ç”„兰鸽 Oct-30-2024 (created)
    if( iscustomdemand ){//全年日度需求/客户需求
      CustomerDemandPPAIDS::GenerateData( this, macroplan, executor );
    if( iscustomdemanddl or iscustomdemandcc ){//全年日度需求/客户需求
      CustomerDemandPPAIDS::GenerateData( this, macroplan, iscustomdemandcc, iscustomdemanddl, executor );
    }
    if ( isofflineplan ) { // å„产线下线计划
    if ( isofflineplandl or isofflineplancc ) { // å„产线下线计划
      InterfaceDataset::PushOfflinePlanData( macroplan, this, executor );
    }
    if( isshiftplan ){//班次计划
    if( isshiftplandl or isshiftplancc ){//班次计划
      DispatchShiftPlan::Dispatch(this, macroplan,executor );
    //  CustomerDemandIDS::GenerateData( this, recyclebin, archive );
    }
    if( isassembleonlineplan ){//装配上线计划
      AssemblyOnlinePlanPPPSPush::GenerateData( this, macroplan, executor );
    if( isassembleonlineplandl or isassembleonlineplancc ){//装配上线计划
      AssemblyOnlinePlanPPPSPush::GenerateData( this, macroplan, isassembleonlineplancc, isassembleonlineplandl, executor );
    }
    if ( isinventoryplan ) { // è®¡åˆ’库存数据
    if ( isinventoryplandl or isinventoryplancc ) { // è®¡åˆ’库存数据
      InterfaceDataset::PushPlanInventoryData( macroplan, this, executor );
    }
  *]
_Main/UI/MacroPlannerWebApp/Component_DialogCustomerDemandPPAIDS/Method_OnOK.def
@@ -11,10 +11,10 @@
    currentuser  := QuintiqUser::CurrentUser().DisplayName();
    isactive     := ifexpr( rbgVersionFlag.BoundValue() = "true", true, false );
    if( efInterfacename.Text() = Translations::InterfaceDataset_CustomerDemandPPAIDS_Name() ){//客户需求
      CustomerDemandPPAIDS::GenerateData( InterfaceDataset, MacroPlan, currentuser );
    //  CustomerDemandPPAIDS::GenerateData( InterfaceDataset, MacroPlan, currentuser );
    }
    if( efInterfacename.Text() = Translations::InterfaceDataset_AssemblyOnlinePlanPPPsPush_Name()){//装配上线
      AssemblyOnlinePlanPPPSPush::GenerateData( InterfaceDataset, MacroPlan, currentuser );
    //  AssemblyOnlinePlanPPPSPush::GenerateData( InterfaceDataset, MacroPlan, currentuser );
    }
    
    WebMessageBox::Success( "推送成功!" );
_Main/UI/MacroPlannerWebApp/Component_DialogPublishPlan/Component_pnlAll.def
ÎļþÃû´Ó _Main/UI/MacroPlannerWebApp/Component_DialogPublishPlan/Component_pnlAll#720.def ÐÞ¸Ä
@@ -1,13 +1,13 @@
Quintiq file version 2.0
Component pnlAll id:pnlAll_720
Component pnlAll
{
  #keys: '[415136.0.1255982465]'
  #keys: '[415136.0.1302693096]'
  BaseType: 'WebPanel'
  Children:
  [
    Component lblAll
    {
      #keys: '[415136.0.1255982466]'
      #keys: '[415136.0.1302693097]'
      BaseType: 'WebLabel'
      Properties:
      [
@@ -17,7 +17,7 @@
    }
    Component cbAll
    {
      #keys: '[415136.0.1255982467]'
      #keys: '[415136.0.1302693098]'
      BaseType: 'WebCheckbox'
      Properties:
      [
_Main/UI/MacroPlannerWebApp/Component_DialogPublishPlan/Component_pnlAllCC.def
copy from "_Main/UI/MacroPlannerWebApp/Component_DialogPublishPlan/Component_pnlAll\043720.def" copy to _Main/UI/MacroPlannerWebApp/Component_DialogPublishPlan/Component_pnlAllCC.def
Îļþ´Ó _Main/UI/MacroPlannerWebApp/Component_DialogPublishPlan/Component_pnlAll#720.def ¸´ÖÆ
@@ -1,13 +1,13 @@
Quintiq file version 2.0
Component pnlAll id:pnlAll_720
Component pnlAllCC
{
  #keys: '[415136.0.1255982465]'
  #keys: '[415136.0.1303133156]'
  BaseType: 'WebPanel'
  Children:
  [
    Component lblAll
    Component lblAllCC
    {
      #keys: '[415136.0.1255982466]'
      #keys: '[415136.0.1303133157]'
      BaseType: 'WebLabel'
      Properties:
      [
@@ -15,9 +15,9 @@
        Taborder: 0
      ]
    }
    Component cbAll
    Component cbAllCC
    {
      #keys: '[415136.0.1255982467]'
      #keys: '[415136.0.1303133158]'
      BaseType: 'WebCheckbox'
      Properties:
      [
_Main/UI/MacroPlannerWebApp/Component_DialogPublishPlan/Component_pnlAssembleOnlinePlan.def
ÎļþÃû´Ó _Main/UI/MacroPlannerWebApp/Component_DialogPublishPlan/Component_pnlAssembleOnlinePlan#679.def ÐÞ¸Ä
@@ -1,13 +1,13 @@
Quintiq file version 2.0
Component pnlAssembleOnlinePlan id:pnlAssembleOnlinePlan_679
Component pnlAssembleOnlinePlan
{
  #keys: '[415136.0.1255982426]'
  #keys: '[415136.0.1302693049]'
  BaseType: 'WebPanel'
  Children:
  [
    Component lblAssembleOnlinePlan
    {
      #keys: '[415136.0.1255982427]'
      #keys: '[415136.0.1302693050]'
      BaseType: 'WebLabel'
      Properties:
      [
@@ -17,7 +17,7 @@
    }
    Component cbAssembleOnlinePlan
    {
      #keys: '[415136.0.1255982428]'
      #keys: '[415136.0.1302693051]'
      BaseType: 'WebCheckbox'
      Properties:
      [
_Main/UI/MacroPlannerWebApp/Component_DialogPublishPlan/Component_pnlAssembleOnlinePlanCC.def
copy from "_Main/UI/MacroPlannerWebApp/Component_DialogPublishPlan/Component_pnlAssembleOnlinePlan\043679.def" copy to _Main/UI/MacroPlannerWebApp/Component_DialogPublishPlan/Component_pnlAssembleOnlinePlanCC.def
Îļþ´Ó _Main/UI/MacroPlannerWebApp/Component_DialogPublishPlan/Component_pnlAssembleOnlinePlan#679.def ¸´ÖÆ
@@ -1,13 +1,13 @@
Quintiq file version 2.0
Component pnlAssembleOnlinePlan id:pnlAssembleOnlinePlan_679
Component pnlAssembleOnlinePlanCC
{
  #keys: '[415136.0.1255982426]'
  #keys: '[415136.0.1303133150]'
  BaseType: 'WebPanel'
  Children:
  [
    Component lblAssembleOnlinePlan
    Component lblAssembleOnlinePlanCC
    {
      #keys: '[415136.0.1255982427]'
      #keys: '[415136.0.1303133151]'
      BaseType: 'WebLabel'
      Properties:
      [
@@ -15,9 +15,9 @@
        Taborder: 0
      ]
    }
    Component cbAssembleOnlinePlan
    Component cbAssembleOnlinePlanCC
    {
      #keys: '[415136.0.1255982428]'
      #keys: '[415136.0.1303133152]'
      BaseType: 'WebCheckbox'
      Properties:
      [
_Main/UI/MacroPlannerWebApp/Component_DialogPublishPlan/Component_pnlContent.def
@@ -5,15 +5,12 @@
  BaseType: 'WebPanel'
  Children:
  [
    #child: pnlCustomDemand_462
    #child: pnlOfflinePlan_520
    #child: pnlAssembleOnlinePlan_679
    #child: pnlInventoryPlan_119
    #child: pnlAll_720
    #child: pnlShiftPlan_780
    #child: pnlContentDL
    #child: pnlContentCC
  ]
  Properties:
  [
    Orientation: 'tab'
    Padding: 'true'
    Taborder: 0
  ]
_Main/UI/MacroPlannerWebApp/Component_DialogPublishPlan/Component_pnlContentCC.def
¶Ô±ÈÐÂÎļþ
@@ -0,0 +1,20 @@
Quintiq file version 2.0
Component pnlContentCC
{
  #keys: '[415136.0.1303133140]'
  BaseType: 'WebPanel'
  Children:
  [
    #child: pnlCustomDemandCC
    #child: pnlOfflinePlanCC
    #child: pnlShiftPlanCC
    #child: pnlAssembleOnlinePlanCC
    #child: pnlInventoryPlanCC
    #child: pnlAllCC
  ]
  Properties:
  [
    Taborder: 1
    Title: '长春工厂'
  ]
}
_Main/UI/MacroPlannerWebApp/Component_DialogPublishPlan/Component_pnlContentDL.def
¶Ô±ÈÐÂÎļþ
@@ -0,0 +1,20 @@
Quintiq file version 2.0
Component pnlContentDL
{
  #keys: '[415136.0.1302530440]'
  BaseType: 'WebPanel'
  Children:
  [
    #child: pnlCustomDemand
    #child: pnlOfflinePlan
    #child: pnlShiftPlan
    #child: pnlAssembleOnlinePlan
    #child: pnlInventoryPlan
    #child: pnlAll
  ]
  Properties:
  [
    Taborder: 0
    Title: '大连工厂'
  ]
}
_Main/UI/MacroPlannerWebApp/Component_DialogPublishPlan/Component_pnlCustomDemand.def
ÎļþÃû´Ó _Main/UI/MacroPlannerWebApp/Component_DialogPublishPlan/Component_pnlCustomDemand#462.def ÐÞ¸Ä
@@ -1,13 +1,13 @@
Quintiq file version 2.0
Component pnlCustomDemand id:pnlCustomDemand_462
Component pnlCustomDemand
{
  #keys: '[415136.0.1255981813]'
  #keys: '[415136.0.1302692983]'
  BaseType: 'WebPanel'
  Children:
  [
    Component lblCustomDemand
    {
      #keys: '[415136.0.1255981814]'
      #keys: '[415136.0.1302692984]'
      BaseType: 'WebLabel'
      Properties:
      [
@@ -17,7 +17,7 @@
    }
    Component cbCustomDemand
    {
      #keys: '[415136.0.1255981815]'
      #keys: '[415136.0.1302692985]'
      BaseType: 'WebCheckbox'
      Properties:
      [
_Main/UI/MacroPlannerWebApp/Component_DialogPublishPlan/Component_pnlCustomDemandCC.def
copy from "_Main/UI/MacroPlannerWebApp/Component_DialogPublishPlan/Component_pnlCustomDemand\043462.def" copy to _Main/UI/MacroPlannerWebApp/Component_DialogPublishPlan/Component_pnlCustomDemandCC.def
Îļþ´Ó _Main/UI/MacroPlannerWebApp/Component_DialogPublishPlan/Component_pnlCustomDemand#462.def ¸´ÖÆ
@@ -1,13 +1,13 @@
Quintiq file version 2.0
Component pnlCustomDemand id:pnlCustomDemand_462
Component pnlCustomDemandCC
{
  #keys: '[415136.0.1255981813]'
  #keys: '[415136.0.1303133141]'
  BaseType: 'WebPanel'
  Children:
  [
    Component lblCustomDemand
    Component lblCustomDemandCC
    {
      #keys: '[415136.0.1255981814]'
      #keys: '[415136.0.1303133142]'
      BaseType: 'WebLabel'
      Properties:
      [
@@ -15,9 +15,9 @@
        Taborder: 0
      ]
    }
    Component cbCustomDemand
    Component cbCustomDemandCC
    {
      #keys: '[415136.0.1255981815]'
      #keys: '[415136.0.1303133143]'
      BaseType: 'WebCheckbox'
      Properties:
      [
_Main/UI/MacroPlannerWebApp/Component_DialogPublishPlan/Component_pnlInventoryPlan.def
ÎļþÃû´Ó _Main/UI/MacroPlannerWebApp/Component_DialogPublishPlan/Component_pnlInventoryPlan#119.def ÐÞ¸Ä
@@ -1,13 +1,13 @@
Quintiq file version 2.0
Component pnlInventoryPlan id:pnlInventoryPlan_119
Component pnlInventoryPlan
{
  #keys: '[415136.0.1255982447]'
  #keys: '[415136.0.1302693071]'
  BaseType: 'WebPanel'
  Children:
  [
    Component lblInventoryPlan
    {
      #keys: '[415136.0.1255982448]'
      #keys: '[415136.0.1302693072]'
      BaseType: 'WebLabel'
      Properties:
      [
@@ -17,7 +17,7 @@
    }
    Component cbInventoryPlan
    {
      #keys: '[415136.0.1255982449]'
      #keys: '[415136.0.1302693073]'
      BaseType: 'WebCheckbox'
      Properties:
      [
_Main/UI/MacroPlannerWebApp/Component_DialogPublishPlan/Component_pnlInventoryPlanCC.def
copy from "_Main/UI/MacroPlannerWebApp/Component_DialogPublishPlan/Component_pnlInventoryPlan\043119.def" copy to _Main/UI/MacroPlannerWebApp/Component_DialogPublishPlan/Component_pnlInventoryPlanCC.def
Îļþ´Ó _Main/UI/MacroPlannerWebApp/Component_DialogPublishPlan/Component_pnlInventoryPlan#119.def ¸´ÖÆ
@@ -1,13 +1,13 @@
Quintiq file version 2.0
Component pnlInventoryPlan id:pnlInventoryPlan_119
Component pnlInventoryPlanCC
{
  #keys: '[415136.0.1255982447]'
  #keys: '[415136.0.1303133153]'
  BaseType: 'WebPanel'
  Children:
  [
    Component lblInventoryPlan
    Component lblInventoryPlanCC
    {
      #keys: '[415136.0.1255982448]'
      #keys: '[415136.0.1303133154]'
      BaseType: 'WebLabel'
      Properties:
      [
@@ -15,9 +15,9 @@
        Taborder: 0
      ]
    }
    Component cbInventoryPlan
    Component cbInventoryPlanCC
    {
      #keys: '[415136.0.1255982449]'
      #keys: '[415136.0.1303133155]'
      BaseType: 'WebCheckbox'
      Properties:
      [
_Main/UI/MacroPlannerWebApp/Component_DialogPublishPlan/Component_pnlOfflinePlan.def
ÎļþÃû´Ó _Main/UI/MacroPlannerWebApp/Component_DialogPublishPlan/Component_pnlOfflinePlan#520.def ÐÞ¸Ä
@@ -1,13 +1,13 @@
Quintiq file version 2.0
Component pnlOfflinePlan id:pnlOfflinePlan_520
Component pnlOfflinePlan
{
  #keys: '[415136.0.1255981829]'
  #keys: '[415136.0.1302693005]'
  BaseType: 'WebPanel'
  Children:
  [
    Component lblOfflinePlan
    {
      #keys: '[415136.0.1255981830]'
      #keys: '[415136.0.1302693006]'
      BaseType: 'WebLabel'
      Properties:
      [
@@ -17,7 +17,7 @@
    }
    Component cbOfflinePlan
    {
      #keys: '[415136.0.1255981831]'
      #keys: '[415136.0.1302693007]'
      BaseType: 'WebCheckbox'
      Properties:
      [
_Main/UI/MacroPlannerWebApp/Component_DialogPublishPlan/Component_pnlOfflinePlanCC.def
copy from "_Main/UI/MacroPlannerWebApp/Component_DialogPublishPlan/Component_pnlOfflinePlan\043520.def" copy to _Main/UI/MacroPlannerWebApp/Component_DialogPublishPlan/Component_pnlOfflinePlanCC.def
Îļþ´Ó _Main/UI/MacroPlannerWebApp/Component_DialogPublishPlan/Component_pnlOfflinePlan#520.def ¸´ÖÆ
@@ -1,13 +1,13 @@
Quintiq file version 2.0
Component pnlOfflinePlan id:pnlOfflinePlan_520
Component pnlOfflinePlanCC
{
  #keys: '[415136.0.1255981829]'
  #keys: '[415136.0.1303133144]'
  BaseType: 'WebPanel'
  Children:
  [
    Component lblOfflinePlan
    Component lblOfflinePlanCC
    {
      #keys: '[415136.0.1255981830]'
      #keys: '[415136.0.1303133145]'
      BaseType: 'WebLabel'
      Properties:
      [
@@ -15,9 +15,9 @@
        Taborder: 0
      ]
    }
    Component cbOfflinePlan
    Component cbOfflinePlanCC
    {
      #keys: '[415136.0.1255981831]'
      #keys: '[415136.0.1303133146]'
      BaseType: 'WebCheckbox'
      Properties:
      [
_Main/UI/MacroPlannerWebApp/Component_DialogPublishPlan/Component_pnlShiftPlan.def
ÎļþÃû´Ó _Main/UI/MacroPlannerWebApp/Component_DialogPublishPlan/Component_pnlShiftPlan#780.def ÐÞ¸Ä
@@ -1,13 +1,13 @@
Quintiq file version 2.0
Component pnlShiftPlan id:pnlShiftPlan_780
Component pnlShiftPlan
{
  #keys: '[415136.0.1255982410]'
  #keys: '[415136.0.1302693027]'
  BaseType: 'WebPanel'
  Children:
  [
    Component lblShiftPlan
    {
      #keys: '[415136.0.1255982411]'
      #keys: '[415136.0.1302693028]'
      BaseType: 'WebLabel'
      Properties:
      [
@@ -17,7 +17,7 @@
    }
    Component cbShiftPlan
    {
      #keys: '[415136.0.1255982412]'
      #keys: '[415136.0.1302693029]'
      BaseType: 'WebCheckbox'
      Properties:
      [
_Main/UI/MacroPlannerWebApp/Component_DialogPublishPlan/Component_pnlShiftPlanCC.def
copy from "_Main/UI/MacroPlannerWebApp/Component_DialogPublishPlan/Component_pnlShiftPlan\043780.def" copy to _Main/UI/MacroPlannerWebApp/Component_DialogPublishPlan/Component_pnlShiftPlanCC.def
Îļþ´Ó _Main/UI/MacroPlannerWebApp/Component_DialogPublishPlan/Component_pnlShiftPlan#780.def ¸´ÖÆ
@@ -1,13 +1,13 @@
Quintiq file version 2.0
Component pnlShiftPlan id:pnlShiftPlan_780
Component pnlShiftPlanCC
{
  #keys: '[415136.0.1255982410]'
  #keys: '[415136.0.1303133147]'
  BaseType: 'WebPanel'
  Children:
  [
    Component lblShiftPlan
    Component lblShiftPlanCC
    {
      #keys: '[415136.0.1255982411]'
      #keys: '[415136.0.1303133148]'
      BaseType: 'WebLabel'
      Properties:
      [
@@ -15,9 +15,9 @@
        Taborder: 0
      ]
    }
    Component cbShiftPlan
    Component cbShiftPlanCC
    {
      #keys: '[415136.0.1255982412]'
      #keys: '[415136.0.1303133149]'
      BaseType: 'WebCheckbox'
      Properties:
      [
_Main/UI/MacroPlannerWebApp/Component_DialogPublishPlan/Method_OnOK.def
@@ -8,31 +8,60 @@
    this.ApplyChanges();
    
      showlabel := '是否发送';
      plannames := construct( Strings );
    dlplannames     := construct( Strings );
    ccplannames     := construct( Strings );
      if( cbCustomDemand.Checked() ){
        plannames.Add( lblCustomDemand.Label() );
      dlplannames.Add( lblCustomDemand.Label() );
    }
    if( cbCustomDemandCC.Checked() ){
      ccplannames.Add( lblCustomDemandCC.Label() );
      }
      if( cbOfflinePlan.Checked() ){
        plannames.Add( lblOfflinePlan.Label() );
      dlplannames.Add( lblOfflinePlan.Label() );
    }
    if( cbOfflinePlanCC.Checked() ){
      ccplannames.Add( lblOfflinePlanCC.Label() );
      }
      if( cbShiftPlan.Checked() ){
        plannames.Add( lblShiftPlan.Label() );
      dlplannames.Add( lblShiftPlan.Label() );
    }
    if( cbShiftPlanCC.Checked() ){
      ccplannames.Add( lblShiftPlanCC.Label() );
      }
      if( cbAssembleOnlinePlan.Checked() ){
        plannames.Add( lblAssembleOnlinePlan.Label() );
      dlplannames.Add( lblAssembleOnlinePlan.Label() );
    }
    if( cbAssembleOnlinePlanCC.Checked() ){
      ccplannames.Add( lblAssembleOnlinePlanCC.Label() );
      }
      if( cbInventoryPlan.Checked() ){
        plannames.Add( lblInventoryPlan.Label() );
      dlplannames.Add( lblInventoryPlan.Label() );
    }
    if( cbInventoryPlanCC.Checked() ){
      ccplannames.Add( lblInventoryPlanCC.Label() );
      }
    
      showlabel := showlabel.Concat( plannames.Concatenate( "、" ) ).Concat( '?' );
    dlshowname      := '大连工厂的';
    if( dlplannames.Size() > 0 ){
      showlabel     := showlabel.Concat( dlshowname.Concat( dlplannames.Concatenate( "、" ) ) ).Concat( ";");
    }
    ccshowname      := '长春工厂的';
    if( ccplannames.Size() > 0 ){
      showlabel     := showlabel.Concat( ccshowname.Concat( ccplannames.Concatenate( "、" ) ) ).Concat( ";");
    }
    showlabel       := showlabel.Concat( '。' );
    currentuser  := QuintiqUser::CurrentUser().DisplayName();
      if( WebMessageBox::Question( this, showlabel, 'OK|Cancel' ) = 0 ){
        InterfaceDataset.PublishPlanReportData( MacroPlan, cbCustomDemand.Checked()
                                              , cbCustomDemandCC.Checked()
                                              , cbOfflinePlan.Checked()
                                              , cbOfflinePlanCC.Checked()
                                              , cbShiftPlan.Checked()
                                              , cbShiftPlanCC.Checked()
                                              , cbAssembleOnlinePlan.Checked()
                                              , cbAssembleOnlinePlanCC.Checked()
                                              , cbInventoryPlan.Checked()
                                              , cbInventoryPlanCC.Checked()
                                                , currentuser );
      }
    
_Main/UI/MacroPlannerWebApp/Component_DialogPublishPlan/Response_pnlActions_btnOk_OnClick.def
@@ -6,7 +6,11 @@
  DefinitionID: 'Responsedef_WebButton_OnClick'
  Precondition:
  [*
    return not ( not cbCustomDemand.Checked() and not cbOfflinePlan.Checked() and not cbShiftPlan.Checked() and not cbAssembleOnlinePlan.Checked() and not cbInventoryPlan.Checked() );
    return not ( not cbCustomDemand.Checked() and not cbCustomDemandCC.Checked()
                  and not cbOfflinePlan.Checked() and not cbOfflinePlanCC.Checked()
                  and not cbShiftPlan.Checked() and not cbShiftPlanCC.Checked()
                  and not cbAssembleOnlinePlan.Checked() and not cbAssembleOnlinePlanCC.Checked()
                  and not cbInventoryPlan.Checked() and not cbInventoryPlanCC.Checked() );
  *]
  QuillAction
  {
_Main/UI/MacroPlannerWebApp/Component_DialogPublishPlan/Response_pnlAllCC_cbAllCC_OnChanged.def
¶Ô±ÈÐÂÎļþ
@@ -0,0 +1,28 @@
Quintiq file version 2.0
#parent: pnlAllCC/cbAllCC
Response OnChanged () id:Response_pnlAllCC_cbAllCC_OnChanged
{
  #keys: '[415136.0.1303133139]'
  CanBindMultiple: false
  DefinitionID: 'Responsedef_WebCheckbox_OnChanged'
  QuillAction
  {
    Body:
    [*
      if( this.Checked() ){
        cbCustomDemandCC.Checked( true );
        cbOfflinePlanCC.Checked( true );
        cbShiftPlanCC.Checked( true );
        cbAssembleOnlinePlanCC.Checked( true );
        cbInventoryPlanCC.Checked( true );
      }else{
        cbCustomDemandCC.Checked( false );
        cbOfflinePlanCC.Checked( false );
        cbShiftPlanCC.Checked( false );
        cbAssembleOnlinePlanCC.Checked( false );
        cbInventoryPlanCC.Checked( false );
      }
    *]
    GroupServerCalls: false
  }
}
_Main/UI/MacroPlannerWebApp/Component_DialogPublishPlan/Response_pnlAll_cbAll_OnChanged.def
ÎļþÃû´Ó _Main/UI/MacroPlannerWebApp/Component_DialogPublishPlan/Response_pnlAll_720_cbAll_OnChanged.def ÐÞ¸Ä
@@ -1,8 +1,8 @@
Quintiq file version 2.0
#parent: pnlAll_720/cbAll
Response OnChanged () id:Response_pnlAll_720_cbAll_OnChanged
#parent: pnlAll/cbAll
Response OnChanged () id:Response_pnlAll_cbAll_OnChanged
{
  #keys: '[415136.0.1255982464]'
  #keys: '[415136.0.1302693095]'
  CanBindMultiple: false
  DefinitionID: 'Responsedef_WebCheckbox_OnChanged'
  QuillAction