| | |
| | | } |
| | | |
| | | //åèµ·å¤çº§å®¡æ¹ |
| | | public bool startCheckFlow(Int64 lngBillKey, Int64 HCheckFlowID_select, ref string sReturn) |
| | | public bool startCheckFlow(Int64 lngBillKey,ref string sReturn) |
| | | { |
| | | try |
| | | { |
| | |
| | | return false; |
| | | } |
| | | HBillNo = ds.Tables[0].Rows[0]["HBillNo"].ToString(); |
| | | |
| | | string HCheckFlowID_select = ds.Tables[0].Rows[0]["HCheckFlowID"].ToString(); |
| | | //è·ååæ®ç±»å对åºçé»è®¤å®¡æ¹æµ |
| | | string sql1 = "select b.HInterID,b.HCheckItemID from Xt_CheckFlowMain as a " + |
| | | "inner join Xt_CheckFlowSub as b on a.HInterID = b.HInterID " + |
| | |
| | | oCn.BeginTran(); |
| | | |
| | | //夿æ¯å¦åå¨å®¡æ ¸è¿çé¡¹ç® |
| | | string sql0 = "select * from Xt_BillCheckFlowStatus where HBillInterID = " + lngBillKey + " and HBillTypeID = '" + this.BillType + "' and ISNULL(HChecker,'') <> ''"; |
| | | DataSet ds0 = oCn.RunProcReturn(sql0, "Xt_BillCheckFlowStatus"); |
| | | if (ds0 != null && ds0.Tables[0].Rows.Count == 0) |
| | | { |
| | | sReturn = "åæ®ä¸åå¨å·²ç»å®¡æ ¸ç项ç®ï¼"; |
| | | return false; |
| | | } |
| | | //string sql0 = "select * from Xt_BillCheckFlowStatus where HBillInterID = " + lngBillKey + " and HBillTypeID = '" + this.BillType + "' and ISNULL(HChecker,'') <> ''"; |
| | | //DataSet ds0 = oCn.RunProcReturn(sql0, "Xt_BillCheckFlowStatus"); |
| | | //if (ds0 != null && ds0.Tables[0].Rows.Count == 0) |
| | | //{ |
| | | // sReturn = "åæ®ä¸åå¨å·²ç»å®¡æ ¸ç项ç®ï¼"; |
| | | // return false; |
| | | //} |
| | | |
| | | //è·åéè¦é©³åçå®¡æ ¸é¡¹ç® |
| | | sql0 = "select c.* from Xt_CheckFlowMain as a " + |
| | | string sql0 = "select c.* from Xt_CheckFlowMain as a " + |
| | | "inner join Xt_CheckFlowSub as b on a.HInterID = b.HInterID " + |
| | | "inner join Xt_BillCheckFlowStatus as c on a.HBillTypeID = c.HBillTypeID and b.HCheckItemID = c.HCheckItemID " + |
| | | "where c.HBillTypeID = '" + this.BillType + "' and c.HBillInterID = " + lngBillKey + " " + |
| | | "order by b.HFlowNo asc"; |
| | | ds0 = oCn.RunProcReturn(sql0, "Xt_BillCheckFlowStatus"); |
| | | DataSet ds0 = oCn.RunProcReturn(sql0, "Xt_BillCheckFlowStatus"); |
| | | if (ds0 == null || ds0.Tables[0].Rows.Count == 0) |
| | | { |
| | | sReturn = "驳å失败!åå :æªå起审æ¹ï¼ï¼"; |
| | |
| | | //æ´æ° 驳åå é¤å®¡æ ¸æµç¶æè¡¨ |
| | | string sql02 = "Delete Xt_BillCheckFlowStatus where HBillTypeID = '" + this.BillType + "' and HBillInterID=" + lngBillKey + " and HCheckFlowID=" + HCheckFlowID; |
| | | oCn.RunProc(sql02); |
| | | oCn.RunProc(" Update " + MvarItemKey + " set HChecker='',HCheckDate=null,HBillStatus=5 Where HInterID=" + lngBillKey.ToString()); |
| | | oCn.RunProc(" Update " + MvarItemKey + " set HChecker='',HCheckDate=null,HBillStatus=5,HCheckItemNowID = 0,HCheckItemNextID = 0 Where HInterID=" + lngBillKey.ToString()); |
| | | |
| | | //åå
¥æ¥å¿ |
| | | string WorkList = "驳ååæ®ï¼åæ®å·ï¼" + HBillNo; |