| | |
| | | oCn.RunProc(sql); |
| | | |
| | | //æ£æ¥åæ®å表ææè¡æ¯å¦é½å
³éï¼è¥é½å
³éåèªå¨å
³éåæ® |
| | | sql = "select * from " + MvarItemKeySub + " where HInterID=" + lngBillKey + " and HCloseMan=''"; |
| | | ds = oCn.RunProcReturn(sql, MvarItemKeySub); |
| | | if(ds!=null && ds.Tables[0].Rows.Count == 0) |
| | | { |
| | | sql = " Update " + MvarItemKey + " set HCloseMan='" + HCloseMan + "',HCloseDate=getdate(),HBillStatus=3,HCloseType = 0 Where HInterID=" + lngBillKey.ToString(); |
| | | oCn.RunProc(sql); |
| | | } |
| | | //sql = "select * from " + MvarItemKeySub + " where HInterID=" + lngBillKey + " and HCloseMan=''"; |
| | | //ds = oCn.RunProcReturn(sql, MvarItemKeySub); |
| | | //if(ds!=null && ds.Tables[0].Rows.Count == 0) |
| | | //{ |
| | | // sql = " Update " + MvarItemKey + " set HCloseMan='" + HCloseMan + "',HCloseDate=getdate(),HBillStatus=3,HCloseType = 0 Where HInterID=" + lngBillKey.ToString(); |
| | | // oCn.RunProc(sql); |
| | | //} |
| | | |
| | | //åå
¥æ¥å¿ |
| | | string WorkList = "è¡å
³éï¼åæ®å·ï¼" + HBillNo + "ï¼å表å
ç ï¼" + HEntryID; |