Merge branch 'dev' of http://47.101.211.7:10101/r/TIANMA_JITUAN into dev_lhj
已重命名11个文件
已添加34个文件
已修改23个文件
已删除12个文件
¶Ô±ÈÐÂÎļþ |
| | |
| | | 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' |
| | | } |
| | | } |
¶Ô±ÈÐÂÎļþ |
| | |
| | | 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; |
| | | *] |
| | | } |
¶Ô±ÈÐÂÎļþ |
| | |
| | | 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(); |
| | | *] |
| | | } |
| | |
| | | // è·å颿µæ°éï¼å®¢æ·+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(); |
| | |
| | | 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æ", |
| | |
| | | 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) |
¶Ô±ÈÐÂÎļþ |
| | |
| | | Quintiq file version 2.0 |
| | | #parent: #root |
| | | Attribute AuthorizeQty |
| | | { |
| | | #keys: '3[414724.0.133544641][414724.0.133544640][414724.0.133544642]' |
| | | Description: 'ææå©ä½æ°é' |
| | | ValueType: Number |
| | | } |
¶Ô±ÈÐÂÎļþ |
| | |
| | | Quintiq file version 2.0 |
| | | #parent: #root |
| | | Attribute CustomerCode |
| | | { |
| | | #keys: '3[414724.0.133544653][414724.0.133544652][414724.0.133544654]' |
| | | Description: '客æ·ID' |
| | | ValueType: String |
| | | } |
¶Ô±ÈÐÂÎļþ |
| | |
| | | Quintiq file version 2.0 |
| | | #parent: #root |
| | | Attribute CustomerName |
| | | { |
| | | #keys: '3[414724.0.133544660][414724.0.133544659][414724.0.133544661]' |
| | | Description: '客æ·åç§°' |
| | | ValueType: String |
| | | } |
¶Ô±ÈÐÂÎļþ |
| | |
| | | Quintiq file version 2.0 |
| | | #parent: #root |
| | | Attribute ForecastQty |
| | | { |
| | | #keys: '3[414724.0.133544656][414724.0.133544655][414724.0.133544657]' |
| | | Description: '彿颿µå©ä½æ°é' |
| | | ValueType: Number |
| | | } |
¶Ô±ÈÐÂÎļþ |
| | |
| | | Quintiq file version 2.0 |
| | | #parent: #root |
| | | Attribute ID |
| | | { |
| | | #keys: '3[414724.0.133544626][414724.0.133544625][414724.0.133544627]' |
| | | Description: 'KEY' |
| | | ValueType: String |
| | | } |
¶Ô±ÈÐÂÎļþ |
| | |
| | | Quintiq file version 2.0 |
| | | #parent: #root |
| | | Attribute MType |
| | | { |
| | | #keys: '3[414724.0.134572562][414724.0.134572561][414724.0.134572563]' |
| | | Description: ' ç©æç±»å' |
| | | ValueType: String |
| | | } |
¶Ô±ÈÐÂÎļþ |
| | |
| | | Quintiq file version 2.0 |
| | | #parent: #root |
| | | Attribute ReverseQty |
| | | { |
| | | #keys: '3[414724.0.133544623][414724.0.133544622][414724.0.133544624]' |
| | | Description: 'åç¾å©ä½æ°é' |
| | | ValueType: Number |
| | | } |
¶Ô±ÈÐÂÎļþ |
| | |
| | | Quintiq file version 2.0 |
| | | #parent: #root |
| | | Attribute SKU |
| | | { |
| | | #keys: '3[414724.0.133544644][414724.0.133544643][414724.0.133544645]' |
| | | Description: 'SKUç¼ç ' |
| | | ValueType: String |
| | | } |
¶Ô±ÈÐÂÎļþ |
| | |
| | | Quintiq file version 2.0 |
| | | #parent: #root |
| | | Attribute Serial |
| | | { |
| | | #keys: '3[414724.0.133544647][414724.0.133544646][414724.0.133544648]' |
| | | Description: 'åºå·ï¼ä¸ä¸å®ä½¿ç¨' |
| | | ValueType: Number |
| | | } |
¶Ô±ÈÐÂÎļþ |
| | |
| | | Quintiq file version 2.0 |
| | | #parent: #root |
| | | Attribute Unit |
| | | { |
| | | #keys: '3[414724.0.133544673][414724.0.133544672][414724.0.133544674]' |
| | | Description: 'åä½' |
| | | ValueType: String |
| | | } |
¶Ô±ÈÐÂÎļþ |
| | |
| | | Quintiq file version 2.0 |
| | | #parent: #root |
| | | DefaultValue |
| | | { |
| | | TargetAttribute: CustomerCode |
| | | } |
¶Ô±ÈÐÂÎļþ |
| | |
| | | Quintiq file version 2.0 |
| | | #parent: #root |
| | | DefaultValue |
| | | { |
| | | TargetAttribute: ID |
| | | } |
¶Ô±ÈÐÂÎļþ |
| | |
| | | Quintiq file version 2.0 |
| | | #parent: #root |
| | | DefaultValue |
| | | { |
| | | TargetAttribute: SKU |
| | | } |
¶Ô±ÈÐÂÎļþ |
| | |
| | | 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' |
| | | } |
¶Ô±ÈÐÂÎļþ |
| | |
| | | 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 |
| | | } |
| | |
| | | Properties: |
| | | [ |
| | | Description: '订åå²ååå表å±ç¤º' |
| | | Image: 'NAV_REDO_LIGHT_BLUE' |
| | | Title: '订åå²ååå表å±ç¤º' |
| | | ] |
| | | } |
| | |
| | | Properties: |
| | | [ |
| | | Description: 'å²åç»æ-æ¥å¿' |
| | | Image: 'DOCUMENT_REFRESH' |
| | | Title: 'åç¾ææå表æç»é¡µ' |
| | | Image: 'NAV_REDO_LIGHT_BLUE' |
| | | Title: 'æ¥å¿é¡µé¢' |
| | | ] |
| | | } |
| | |
| | | Properties: |
| | | [ |
| | | Description: 'ææ/åç¾ç©æéè´æç»éæ¾' |
| | | Image: 'DOG' |
| | | Image: 'NAV_REDO_LIGHT_BLUE' |
| | | Title: 'ææ/åç¾ç©æéè´æç»éæ¾' |
| | | ] |
| | | } |
| | |
| | | Properties: |
| | | [ |
| | | Description: 'åç¾/ææç©æåå¸çæ¬æç»' |
| | | Image: 'BULL' |
| | | Image: 'NAV_REDO_LIGHT_BLUE' |
| | | Title: 'åç¾/ææç©æåå¸çæ¬æç»' |
| | | ] |
| | | } |
| | |
| | | [* |
| | | // è·åéæ©åç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"); |
| | |
| | | Properties: |
| | | [ |
| | | Description: 'åææåæååç¾æææ°å¢é¡µ' |
| | | Image: 'NAV_REDO_LIGHT_BLUE' |
| | | Title: 'åææåæååç¾æææ°å¢é¡µ' |
| | | ] |
| | | } |
ÎļþÃû´Ó _Main/UI/MacroPlannerWebApp/Component_FrmAuthorizeAndCountersign/Component_Panel261.def ÐÞ¸Ä |
| | |
| | | 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: |
| | | [ |
| | |
| | | } |
| | | Component btn_Cancel_FAAC |
| | | { |
| | | #keys: '[414724.0.44279090]' |
| | | #keys: '[414724.0.117732109]' |
| | | BaseType: 'WebButton' |
| | | Properties: |
| | | [ |
| | |
| | | Border: true |
| | | FixedSize: true |
| | | Orientation: 'horizontal' |
| | | Taborder: 2 |
| | | Taborder: 10 |
| | | ] |
| | | } |
¶Ô±ÈÐÂÎļþ |
| | |
| | | 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 |
| | | ] |
| | | } |
¶Ô±ÈÐÂÎļþ |
| | |
| | | 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/Component_PanelTop.def ÐÞ¸Ä |
| | |
| | | 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: |
| | | [ |
| | |
| | | [ |
| | | FixedSize: true |
| | | Orientation: 'horizontal' |
| | | Taborder: 1 |
| | | Taborder: 2 |
| | | ] |
| | | } |
ÎļþÃû´Ó _Main/UI/MacroPlannerWebApp/Component_FrmAuthorizeAndCountersign/Component_PanelTop104.def ÐÞ¸Ä |
| | |
| | | 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 |
| | | ] |
| | | } |
| | |
| | | [ |
| | | FixedSize: true |
| | | Orientation: 'horizontal' |
| | | Taborder: 7 |
| | | Taborder: 8 |
| | | ] |
| | | } |
ÎļþÃû´Ó _Main/UI/MacroPlannerWebApp/Component_FrmAuthorizeAndCountersign/Component_PanelTop264.def ÐÞ¸Ä |
| | |
| | | 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: |
| | | [ |
| | |
| | | [ |
| | | FixedSize: true |
| | | Orientation: 'horizontal' |
| | | Taborder: 4 |
| | | Taborder: 5 |
| | | ] |
| | | } |
ÎļþÃû´Ó _Main/UI/MacroPlannerWebApp/Component_FrmAuthorizeAndCountersign/Component_PanelTop360.def ÐÞ¸Ä |
| | |
| | | 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: |
| | | [ |
| | |
| | | [ |
| | | FixedSize: true |
| | | Orientation: 'horizontal' |
| | | Taborder: 3 |
| | | Taborder: 4 |
| | | ] |
| | | } |
ÎļþÃû´Ó _Main/UI/MacroPlannerWebApp/Component_FrmAuthorizeAndCountersign/Component_PanelTop597.def ÐÞ¸Ä |
| | |
| | | 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: |
| | | [ |
| | |
| | | [ |
| | | FixedSize: true |
| | | Orientation: 'horizontal' |
| | | Taborder: 5 |
| | | Taborder: 6 |
| | | ] |
| | | } |
ÎļþÃû´Ó _Main/UI/MacroPlannerWebApp/Component_FrmAuthorizeAndCountersign/Component_PanelTop612.def ÐÞ¸Ä |
| | |
| | | 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: |
| | | [ |
| | |
| | | [ |
| | | FixedSize: true |
| | | Orientation: 'horizontal' |
| | | Taborder: 8 |
| | | Taborder: 9 |
| | | ] |
| | | } |
ÎļþÃû´Ó _Main/UI/MacroPlannerWebApp/Component_FrmAuthorizeAndCountersign/Component_PanelTop744.def ÐÞ¸Ä |
| | |
| | | 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: |
| | | [ |
| | |
| | | [ |
| | | FixedSize: true |
| | | Orientation: 'horizontal' |
| | | Taborder: 2 |
| | | Taborder: 3 |
| | | ] |
| | | } |
ÎļþÃû´Ó _Main/UI/MacroPlannerWebApp/Component_FrmAuthorizeAndCountersign/Component_PanelTop846.def ÐÞ¸Ä |
| | |
| | | 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 |
| | | ] |
| | | } |
| | |
| | | [ |
| | | FixedSize: true |
| | | Orientation: 'horizontal' |
| | | Taborder: 6 |
| | | Taborder: 7 |
| | | Visible: false |
| | | ] |
| | | } |
¶Ô±ÈÐÂÎļþ |
| | |
| | | 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 |
| | | } |
| | | } |
¶Ô±ÈÐÂÎļþ |
| | |
| | | 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 |
| | | } |
| | | } |
¶Ô±ÈÐÂÎļþ |
| | |
| | | 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 |
| | | } |
| | | } |
¶Ô±ÈÐÂÎļþ |
| | |
| | | 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: '订ååç¾æææ°å¢é¡µ' |
| | | ] |
| | | } |
| | |
| | | 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: |
| | |
| | | #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 |
¶Ô±ÈÐÂÎļþ |
| | |
| | | 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 |
| | | } |
| | | } |
| | |
| | | { |
| | | Body: |
| | | [* |
| | | Application.OpenForm( "FrmAuthorizeAndCountersign_Material","popout"); |
| | | Application.OpenForm( "FrmAuthorizeAndCountersign_Material","modal"); |
| | | *] |
| | | GroupServerCalls: false |
| | | } |
| | |
| | | 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: 'åæå表页' |
| | | ] |
| | | } |
¶Ô±ÈÐÂÎļþ |
| | |
| | | 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 |
| | | ] |
| | | } |
| | |
| | | MinimumColumns: 80 |
| | | Orientation: 'horizontal' |
| | | Taborder: 0 |
| | | Visible: false |
| | | ] |
| | | } |
| | |
| | | Description: 'å è½½æ°æ®ï¼åçï¼åç»éè¦å¯¹æ¥æ°æ®ï¼' |
| | | Label: 'å è½½é¢æµè®¢åæ°æ®' |
| | | Taborder: 0 |
| | | Visible: false |
| | | ] |
| | | } |
| | | ] |
| | |
| | | [ |
| | | Alignment: 'trailing' |
| | | FixedSize: true |
| | | MinimumColumns: 20 |
| | | Orientation: 'horizontal' |
| | | Taborder: 1 |
| | | ] |
| | |
| | | ] |
| | | Properties: |
| | | [ |
| | | Description: 'å·²ç»éèï¼ææªä½¿ç¨' |
| | | FixedSize: true |
| | | Orientation: 'horizontal' |
| | | Taborder: 1 |
| | | Taborder: 2 |
| | | Visible: false |
| | | ] |
| | | } |
| | |
| | | ] |
| | | 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 |
| | | ] |
| | |
| | | ] |
| | | Properties: |
| | | [ |
| | | Taborder: 6 |
| | | Taborder: 7 |
| | | ] |
| | | } |
| | |
| | | ] |
| | | Properties: |
| | | [ |
| | | Taborder: 4 |
| | | Taborder: 5 |
| | | Visible: false |
| | | ] |
| | | } |
| | |
| | | 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 |
| | |
| | | [* |
| | | // åå§åæ¥è¯¢åæ°æä»½ |
| | | 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 |
| | | } |
¶Ô±ÈÐÂÎļþ |
| | |
| | | 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 |
| | | } |
| | | } |
¶Ô±ÈÐÂÎļþ |
| | |
| | | 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 |
| | | } |
| | | } |
¶Ô±ÈÐÂÎļþ |
| | |
| | | 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 |
| | | } |
| | | } |
| | |
| | | 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 |
| | | { |
| | |
| | | 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 |
| | |
| | | ] |
| | | Properties: |
| | | [ |
| | | Taborder: 3 |
| | | Taborder: 4 |
| | | ] |
| | | } |
| | | #child: Panel961 |
| | |
| | | ] |
| | | Properties: |
| | | [ |
| | | Taborder: 2 |
| | | Taborder: 3 |
| | | ] |
| | | } |
| | | Component dh_FOF_H_Forecast |
| | |
| | | ] |
| | | Properties: |
| | | [ |
| | | Taborder: 5 |
| | | Taborder: 6 |
| | | ] |
| | | } |
| | | #child: liH_Forecast |
| | | #child: Panel351 |
| | | ] |
| | | Properties: |
| | | [ |
| | | Description: '订å颿µé¡µé¢' |
| | | Image: 'GOLDFISH' |
| | | Image: 'NAV_REDO_LIGHT_BLUE' |
| | | Title: '颿µå表页' |
| | | ] |
| | | } |
| | |
| | | Properties: |
| | | [ |
| | | Description: '订åå²åè¿ç¨åè®¢åæ ç¾å±ç¤º' |
| | | Image: 'NAV_REDO_LIGHT_BLUE' |
| | | Title: '订åå²åè¿ç¨åè®¢åæ ç¾å±ç¤º' |
| | | ] |
| | | } |
¶Ô±ÈÐÂÎļþ |
| | |
| | | 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 |
| | | ] |
| | | } |
¶Ô±ÈÐÂÎļþ |
| | |
| | | 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 |
| | | ] |
| | | } |
¶Ô±ÈÐÂÎļþ |
| | |
| | | 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_FrmTEST/Component_listActionBarPage748.def ÐÞ¸Ä |
| | |
| | | Quintiq file version 2.0 |
| | | Component listActionBarPage748 |
| | | Component listActionBarPage112 |
| | | { |
| | | #keys: '[414724.0.58710450]' |
| | | #keys: '[414724.0.118276733]' |
| | | BaseType: 'listActionBarPage' |
| | | Properties: |
| | | [ |
ÎļþÃû´Ó _Main/UI/MacroPlannerWebApp/Component_FrmTEST/Component_listContextMenu623.def ÐÞ¸Ä |
| | |
| | | Quintiq file version 2.0 |
| | | Component listContextMenu623 |
| | | Component listContextMenu660 |
| | | { |
| | | #keys: '[414724.0.58710455]' |
| | | #keys: '[414724.0.118276738]' |
| | | BaseType: 'listContextMenu' |
| | | Properties: |
| | | [ |
¶Ô±ÈÐÂÎļþ |
| | |
| | | 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 |
| | | } |
| | | } |
¶Ô±ÈÐÂÎļþ |
| | |
| | | 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 |
| | | } |
| | | } |
| | |
| | | { |
| | | #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: 'åç¾åææå表å±ç¤ºé¡µ' |
| | | ] |
| | | } |