| | |
| | | } |
| | | 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 " + |
| | | "where a.HBillTypeID = '" + this.BillType + "' " + |
| | | //"and a.HInterID = " + HCheckFlowID_select + " " + |
| | | "and a.HStandard = 1 " + |
| | | "order by b.HFlowNo asc"; |
| | | DataSet ds1 = oCn.RunProcReturn(sql1, "Xt_CheckFlowMain"); |
| | | if (ds1 == null || ds1.Tables[0].Rows.Count == 0) |
| | | //è¥åæ®æªç»å®å®¡æ¹æµ |
| | | DataSet ds1; |
| | | if(HCheckFlowID_select=="0") |
| | | { |
| | | sReturn = "é»è®¤å®¡æ¹æµä¸åå¨ï¼"; |
| | | return false; |
| | | //è·ååæ®ç±»å对åºçé»è®¤å®¡æ¹æµ |
| | | string sql1 = "select b.HInterID,b.HCheckItemID from Xt_CheckFlowMain as a " + |
| | | "inner join Xt_CheckFlowSub as b on a.HInterID = b.HInterID " + |
| | | "where a.HBillTypeID = '" + this.BillType + "' " + |
| | | //"and a.HInterID = " + HCheckFlowID_select + " " + |
| | | "and a.HStandard = 1 " + |
| | | "order by b.HFlowNo asc"; |
| | | ds1 = oCn.RunProcReturn(sql1, "Xt_CheckFlowMain"); |
| | | if (ds1 == null || ds1.Tables[0].Rows.Count == 0) |
| | | { |
| | | sReturn = "åæ®æªç»å®å®¡æ¹æµä¸é»è®¤å®¡æ¹æµä¸åå¨ï¼"; |
| | | return false; |
| | | } |
| | | } |
| | | else |
| | | { |
| | | //è·å忮坹åºçå®¡æ¹æµ |
| | | string sql1 = "select b.HInterID,b.HCheckItemID from Xt_CheckFlowMain as a " + |
| | | "inner join Xt_CheckFlowSub as b on a.HInterID = b.HInterID " + |
| | | "where a.HBillTypeID = '" + this.BillType + "' " + |
| | | "and a.HInterID = " + HCheckFlowID_select + " " + |
| | | "order by b.HFlowNo asc"; |
| | | ds1 = oCn.RunProcReturn(sql1, "Xt_CheckFlowMain"); |
| | | if (ds1 == null || ds1.Tables[0].Rows.Count == 0) |
| | | { |
| | | sReturn = "å®¡æ¹æµä¸åå¨ï¼"; |
| | | return false; |
| | | } |
| | | } |
| | | |
| | | |
| | | HCheckFlowID = ds1.Tables[0].Rows[0]["HInterID"].ToString(); |
| | | HCheckItemNowID = ds1.Tables[0].Rows[0]["HCheckItemID"].ToString(); |