| | |
| | | public bool AbandonCancelltion(Int64 lngBillKey, ref string sReturn) |
| | | { |
| | | try |
| | | { |
| | | oCn.RunProc(" Update " + MvarItemKey + " set HDeleteMan='',HDeleteDate=null Where HInterID=" + lngBillKey.ToString()); |
| | | { |
| | | DataSet ds = oCn.RunProcReturn("select * from " + MvarItemKey + " where HInterID=" + lngBillKey.ToString(), MvarItemKey); |
| | | if (ds.Tables[0].Rows[0]["HCloseMan"].ToString() != "") |
| | | { |
| | | oCn.RunProc(" Update " + MvarItemKey + " set HDeleteMan='',HDeleteDate=null,HBillStatus=3 Where HInterID=" + lngBillKey.ToString()); |
| | | } |
| | | else if (ds.Tables[0].Rows[0]["HChecker"].ToString() != "") |
| | | { |
| | | oCn.RunProc(" Update " + MvarItemKey + " set HDeleteMan='',HDeleteDate=null,HBillStatus=2 Where HInterID=" + lngBillKey.ToString()); |
| | | } |
| | | else |
| | | { |
| | | oCn.RunProc(" Update " + MvarItemKey + " set HDeleteMan='',HDeleteDate=null,HBillStatus=1 Where HInterID=" + lngBillKey.ToString()); |
| | | } |
| | | sReturn = ""; |
| | | return true; |
| | | } |
| | |
| | | public bool CancelClose(Int64 lngBillKey, ref string sReturn) |
| | | { |
| | | try |
| | | { |
| | | oCn.RunProc(" Update " + MvarItemKey + " set HCloseMan='',HCloseDate=null Where HInterID=" + lngBillKey.ToString()); |
| | | { |
| | | DataSet ds = oCn.RunProcReturn("select * from " + MvarItemKey + " where HInterID=" + lngBillKey.ToString(), MvarItemKey); |
| | | if (ds.Tables[0].Rows[0]["HDeleteMan"].ToString() != "") |
| | | { |
| | | oCn.RunProc(" Update " + MvarItemKey + " set HCloseMan='',HCloseDate=null,HBillStatus=4 Where HInterID=" + lngBillKey.ToString()); |
| | | } |
| | | else if (ds.Tables[0].Rows[0]["HChecker"].ToString() != "") |
| | | { |
| | | oCn.RunProc(" Update " + MvarItemKey + " set HCloseMan='',HCloseDate=null,HBillStatus=2 Where HInterID=" + lngBillKey.ToString()); |
| | | } |
| | | else |
| | | { |
| | | oCn.RunProc(" Update " + MvarItemKey + " set HCloseMan='',HCloseDate=null,HBillStatus=1 Where HInterID=" + lngBillKey.ToString()); |
| | | } |
| | | |
| | | sReturn = ""; |
| | | return true; |
| | | } |
| | |
| | | return false; |
| | | } |
| | | try |
| | | { |
| | | oCn.RunProc(" Update " + MvarItemKey + " set HChecker='',HCheckDate=null Where HInterID=" + lngBillKey.ToString()); |
| | | { |
| | | DataSet ds = oCn.RunProcReturn("select * from " + MvarItemKey + " where HInterID=" + lngBillKey.ToString(), MvarItemKey); |
| | | if (ds.Tables[0].Rows[0]["HDeleteMan"].ToString() != "") |
| | | { |
| | | oCn.RunProc(" Update " + MvarItemKey + " set HChecker='',HCheckDate=null,HBillStatus=4 Where HInterID=" + lngBillKey.ToString()); |
| | | } |
| | | else if (ds.Tables[0].Rows[0]["HCloseMan"].ToString() != "") |
| | | { |
| | | oCn.RunProc(" Update " + MvarItemKey + " set HChecker='',HCheckDate=null,HBillStatus=3 Where HInterID=" + lngBillKey.ToString()); |
| | | } |
| | | else |
| | | { |
| | | oCn.RunProc(" Update " + MvarItemKey + " set HChecker='',HCheckDate=null,HBillStatus=1 Where HInterID=" + lngBillKey.ToString()); |
| | | } |
| | | |
| | | sReturn = ""; |
| | | return true; |
| | | } |
| | |
| | | { |
| | | string HChecker = ClsPub.CurUserName ; |
| | | string HCheckDate =ClsPub.GetServerDate(-1); |
| | | oCn.RunProc(" Update " + MvarItemKey + " set HChecker='" + HChecker + "',HCheckDate='" + HCheckDate + "' Where HInterID=" + lngBillKey.ToString()); |
| | | oCn.RunProc(" Update " + MvarItemKey + " set HChecker='" + HChecker + "',HCheckDate='" + HCheckDate + "',HBillStatus=2 Where HInterID=" + lngBillKey.ToString()); |
| | | sReturn = ""; |
| | | return true; |
| | | } |
| | |
| | | { |
| | | string HCloseMan = ClsPub.CurUserName; |
| | | string HCloseDate = ClsPub.GetServerDate(-1); |
| | | oCn.RunProc(" Update " + MvarItemKey + " set HCloseMan='" + HCloseMan + "',HCloseDate='" + HCloseDate + "' Where HInterID=" + lngBillKey.ToString()); |
| | | oCn.RunProc(" Update " + MvarItemKey + " set HCloseMan='" + HCloseMan + "',HCloseDate='" + HCloseDate + "',HBillStatus=3 Where HInterID=" + lngBillKey.ToString()); |
| | | sReturn = ""; |
| | | return true; |
| | | } |
| | |
| | | { |
| | | string HDeleteMan = ClsPub.CurUserName; |
| | | string HDeleteDate = ClsPub.GetServerDate(-1); |
| | | oCn.RunProc(" Update " + MvarItemKey + " set HDeleteMan='" + HDeleteMan + "',HDeleteDate='" + HDeleteDate + "' Where HInterID=" + lngBillKey.ToString()); |
| | | oCn.RunProc(" Update " + MvarItemKey + " set HDeleteMan='" + HDeleteMan + "',HDeleteDate='" + HDeleteDate + "',HBillStatus=4 Where HInterID=" + lngBillKey.ToString()); |
| | | sReturn = ""; |
| | | return true; |
| | | } |