_Main/BL/Type_H_FunctionClass/StaticMethod_SM_OrderHedgingEx.qbl | ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史 | |
_Main/BL/Type_H_FunctionClass/StaticMethod_SM_OrderReverseOrAuthorize.qbl | ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史 | |
_Main/UI/MacroPlannerWebApp/Component_FrmErrorLogs/Component_List710.def | ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史 | |
_Main/UI/MacroPlannerWebApp/Component_FrmErrorLogs/Component_Panel391.def | ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史 | |
_Main/UI/MacroPlannerWebApp/Component_FrmErrorLogs/Response_Panel391_Button655_OnClick.def | ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史 | |
_Main/UI/MacroPlannerWebApp/Component_FrmErrorLogs/_ROOT_Component_FrmErrorLogs.def | ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史 |
_Main/BL/Type_H_FunctionClass/StaticMethod_SM_OrderHedgingEx.qbl
¶Ô±ÈÐÂÎļþ @@ -0,0 +1,67 @@ Quintiq file version 2.0 #parent: #root StaticMethod SM_OrderHedgingEx ( MacroPlan Owner, String Operator ) as owning JSON { Description: '填产åå²å' TextBody: [* /*******************************填产å订åå²å*********************** *彿°åç§°ï¼SM_OrderHedgingEx *å 建 人ï¼yunying *å建æ¶é´ï¼2023-09-27 *æ è¿°ï¼å¡«äº§å订åå²å,填产åç表ï¼Owner.FillingCapacityOrder *å æ°ï¼Operator æä½äºº *è¿ å å¼ï¼JSON {Status: true æå/false 失败,Msg:"æç¤ºæ¶æ¯"} *******************************************************************/ // åå§åç»æ bStatus := false; strMsg :=""; try { error( "AAAAAA"); if(not isnull( Owner)) { // Customer æ¢æç¶æ NewOrders := selectset( Owner,FillingCapacityOrder,Obj,Obj.State() = "æªå²å"); if(NewOrders.Size()>0) { traverse( NewOrders,Elements,Obj) { if( Obj.OrderType()="åç¾" or Obj.OrderType()="ææ") { // æ´æ°ç¶æ Obj.State("å·²å²å"); } else { strMsg :="订åç±»åï¼" + Obj.OrderType() + "æ æ³å²åï¼"; } } bStatus:=true; strMsg :="填产åå²å宿ï¼"; } else { strMsg :="æ å¯å²åçæ°æ®ï¼"; } } else { strMsg :="å è½½æ°æ®å¤±è´¥ï¼è¯·å建æéæ©åºæ¯ååæä½ï¼"; } } onerror { strMsg :="填产å订åå²ååçé误ï¼è¯·è系系ç»ç®¡çåï¼"; // è®°å½é误æ¥å¿ Owner.H_ErrorLogs(relnew,EClassName := "H_FunctionClass",EDateTime := DateTime::ActualGMTTime(),EFunctionName := "SM_OrderHedgingEx", 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_OrderReverseOrAuthorize.qbl
@@ -39,7 +39,7 @@ nReverseQtyNew :=0; //计ç®åçåç¾æ°é nAuthorizeQtyNew :=0; //计ç®åçæææ°é nHaveForecastQty :=0; //æé¢æµæ°é nNoHaveForecastQty:=0;//äºé¢æµæ°é nNoHaveForecastQty:=0;//æ 颿µæ°é // è·å颿µæ°éï¼å®¢æ·+SKU+æä»½ çè®ºæ¯æ²¡æç©æé¢æµï¼ OrderForecast := select(Owner, H_OrderForecastRealQty , Obj, Obj.SKU() = SKU and Obj.CustomCode() = CustomerCode _Main/UI/MacroPlannerWebApp/Component_FrmErrorLogs/Component_List710.def
@@ -36,6 +36,6 @@ ] Properties: [ Taborder: 1 Taborder: 2 ] } _Main/UI/MacroPlannerWebApp/Component_FrmErrorLogs/Component_Panel391.def
¶Ô±ÈÐÂÎļþ @@ -0,0 +1,24 @@ Quintiq file version 2.0 Component Panel391 { #keys: '[414724.0.193860534]' BaseType: 'WebPanel' Children: [ Component Button655 { #keys: '[414724.0.193860558]' BaseType: 'WebButton' Properties: [ Image: 'BULL' Label: '填产å²å' Taborder: 0 ] } ] Properties: [ Taborder: 0 ] } _Main/UI/MacroPlannerWebApp/Component_FrmErrorLogs/Response_Panel391_Button655_OnClick.def
¶Ô±ÈÐÂÎļþ @@ -0,0 +1,39 @@ Quintiq file version 2.0 #parent: Panel391/Button655 Response OnClick () id:Response_Panel391_Button655_OnClick { #keys: '[414724.0.194975663]' CanBindMultiple: false DefinitionID: 'Responsedef_WebButton_OnClick' Precondition: [* return not isnull( MacroPlan); *] QuillAction { Body: [* HResult := H_FunctionClass::SM_OrderHedgingEx( MacroPlan,"æµè¯ç¨æ·" ); Msg := HResult.Get( "Msg").GetString(); if( HResult.Get( "Status").GetBoolean()) { if( Msg.Length()>0) { WebMessageBox::Information(Msg); } } else { if( Msg.Length()>0) { WebMessageBox::Warning(Msg); } else { WebMessageBox::Information("è¿è¡é误ï¼"); } } *] GroupServerCalls: false } } _Main/UI/MacroPlannerWebApp/Component_FrmErrorLogs/_ROOT_Component_FrmErrorLogs.def
@@ -30,9 +30,10 @@ ] Properties: [ Taborder: 0 Taborder: 1 ] } #child: Panel391 ] Properties: [