| | |
| | | |
| | | if (ds.Tables[0].Rows.Count > 0) |
| | | { |
| | | if (ds.Tables[0].Rows[0]["åæ®ç¶æ"].ToString() == "2") |
| | | if (ds.Tables[0].Rows[0]["åæ®ç¶æ"].ToString() == "3") |
| | | { |
| | | objJsonResult.code = "0"; |
| | | objJsonResult.count = 0; |
| | | objJsonResult.Message = "å½ååæ®æ£å¨å®¡æ ¸,ä¸è½å
³éï¼"; |
| | | objJsonResult.Message = "å½å忮已å
³é!"; |
| | | objJsonResult.data = null; |
| | | return objJsonResult; |
| | | } |
| | |
| | | } |
| | | #endregion |
| | | |
| | | #region ææè®¡åå åå
³é |
| | | [Route("JIT_Cg_PODemandPlanBill/CancelClosePODemandPlanBillList")] |
| | | [HttpGet] |
| | | public object CancelClosePODemandPlanBillList(string HInterID, string User) |
| | | { |
| | | try |
| | | { |
| | | //å
³éæé |
| | | if (!DBUtility.ClsPub.Security_Log_second("JIT_Cg_PODemandPlanBill_Close", 1, false, User)) |
| | | { |
| | | objJsonResult.code = "0"; |
| | | objJsonResult.count = 0; |
| | | objJsonResult.Message = "æ æéå
³éï¼"; |
| | | objJsonResult.data = null; |
| | | return objJsonResult; |
| | | } |
| | | |
| | | ds = oCN.RunProcReturn("select * from h_v_JIT_Cg_PODemandPlanBillList where 1=1 and hmainid=" + HInterID, "h_v_JIT_Cg_PODemandPlanBillList"); |
| | | |
| | | if (ds.Tables[0].Rows.Count > 0) |
| | | { |
| | | if (ds.Tables[0].Rows[0]["åæ®ç¶æ"].ToString() != "3") |
| | | { |
| | | objJsonResult.code = "0"; |
| | | objJsonResult.count = 0; |
| | | objJsonResult.Message = "å½ååæ®æ²¡æå¤äºå
³éç¶æ!"; |
| | | objJsonResult.data = null; |
| | | return objJsonResult; |
| | | } |
| | | |
| | | oCN.BeginTran();//å¼å¯äºå¡ |
| | | |
| | | string HBillStatus = ds.Tables[0].Rows[0]["å®¡æ ¸äºº"].ToString() == "" ? "1" : "2"; |
| | | oCN.RunProc($"update JIT_Cg_PODemandPlanBillMain set HBillStatus='{HBillStatus}',HCloseMan='',HCloseDate=null where HInterID={HInterID}"); |
| | | |
| | | oCN.Commit();//ç»æäºå¡ |
| | | |
| | | objJsonResult.code = "1"; |
| | | objJsonResult.count = 1; |
| | | objJsonResult.Message = "å
³éæåï¼"; |
| | | objJsonResult.data = null; |
| | | return objJsonResult; |
| | | } |
| | | |
| | | objJsonResult.code = "0"; |
| | | objJsonResult.count = 0; |
| | | objJsonResult.Message = "å½ååæ®ä¸åå¨,æ æ³å
³éï¼"; |
| | | objJsonResult.data = null; |
| | | return objJsonResult; |
| | | } |
| | | catch (Exception e) |
| | | { |
| | | oCN.RollBack();//åæ»äºå¡ |
| | | objJsonResult.code = "0"; |
| | | objJsonResult.count = 0; |
| | | objJsonResult.Message = e.ToString(); |
| | | objJsonResult.data = null; |
| | | return objJsonResult; |
| | | } |
| | | } |
| | | #endregion |
| | | |
| | | #region ææè®¡åå ææè®¡åæ¥è¡¨(éè´è®¢å维度) |
| | | public class ReportPODemandPlanBill |
| | | public class ReportPODemandPlanBill |
| | | { |
| | | public int? HORGID; |
| | | public DateTime HBEGINDATE; |