/// <summary> /// 取消分配确认 /// </summary> /// <param name="BillNo"></param> /// <returns></returns> public bool Rev_ConAllotment(string BillNo) { bool flag = false; using (PersistentManager persistentManager = new PersistentManager()) { EntryBillMasterDao dao = new EntryBillMasterDao(); string sql = string.Format("update WMS_IN_BILLMASTER SET STATUS='3' where BILLNO='{0}'", BillNo); dao.SetData(sql); flag = true; } return(flag); }
/// <summary> /// 反向审核 /// </summary> /// <param name="BillNo"></param> /// <returns></returns> public bool Rev_Validate(string BillNo) { bool flag = false; using (PersistentManager persistentManager = new PersistentManager()) { EntryBillMasterDao dao = new EntryBillMasterDao(); string sql = string.Format("update WMS_IN_BILLMASTER SET STATUS='1', VALIDATEPERSON='',VALIDATEDATE=null where BILLNO='{0}'", BillNo); dao.SetData(sql); flag = true; } return(flag); }
/// <summary> /// 审核通过 /// </summary> /// <param name="BillNo"></param> /// <param name="EmployeeCode"></param> /// <returns></returns> public bool Validate(string BillNo, string EmployeeCode) { bool flag = false; using (PersistentManager persistentManager = new PersistentManager()) { EntryBillMasterDao dao = new EntryBillMasterDao(); string sql = string.Format("update WMS_IN_BILLMASTER SET STATUS='2', VALIDATEPERSON='{0}',VALIDATEDATE='{1}' WHERE BILLNO='{2}'", EmployeeCode, System.DateTime.Now.ToString("yyyy-MM-dd"), BillNo); dao.SetData(sql); flag = true; } return(flag); }
/// <summary> /// 更新已经执行分配的入库单状态 /// </summary> /// <param name="BillNo"></param> /// <returns></returns> public bool UpdateAlloted(string BillNo, string EmployeeCode) { string[] aryBillNo = BillNo.Split(','); string BillNoList = "''"; for (int i = 0; i < aryBillNo.Length; i++) { BillNoList += ",'" + aryBillNo[i] + "'"; } bool flag = false; using (PersistentManager persistentManager = new PersistentManager()) { EntryBillMasterDao dao = new EntryBillMasterDao(); string sql = string.Format("update WMS_IN_BILLMASTER SET STATUS='3' where BILLNO in ({0}) ", BillNoList); dao.SetData(sql); flag = true; } return(flag); }
public bool Update() { bool flag = false; using (PersistentManager persistentManager = new PersistentManager()) { EntryBillMasterDao dao = new EntryBillMasterDao(); string sql = string.Format("update WMS_IN_BILLMASTER set BILLDATE='{1}',BILLTYPE='{2}',WH_CODE='{3}',OPERATEPERSON='{4}',STATUS='{5}',MEMO='{6}' where BILLNO='{0}'" , this.BILLNO, this.BILLDATE.ToString("yyyy-MM-dd HH:mm"), this.BILLTYPE, this.WH_CODE, this.OPERATEPERSON, this.STATUS, this.MEMO); dao.SetData(sql); flag = true; } return(flag); }
public bool Insert() { bool flag = false; using (PersistentManager persistentManager = new PersistentManager()) { EntryBillMasterDao dao = new EntryBillMasterDao(); string sql = string.Format("Insert into WMS_IN_BILLMASTER (BILLNO,BILLDATE,BILLTYPE,WH_CODE,OPERATEPERSON,STATUS,MEMO) values('{0}','{1}','{2}','{3}','{4}','{5}','{6}')" , this.BILLNO, this.BILLDATE.ToString("yyyy-MM-dd HH:mm"), this.BILLTYPE, this.WH_CODE, this.OPERATEPERSON, this.STATUS, this.MEMO); dao.SetData(sql); flag = true; } return(flag); }