| | |
| | | } |
| | | 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 + " " + |
| | | "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(); |
| | |
| | | } |
| | | |
| | | //驳å |
| | | public bool RejectCheckFlowProgress(Int64 lngBillKey, string HBillNo,string sUser, ref string sReturn) |
| | | public virtual bool RejectCheckFlowProgress(Int64 lngBillKey, string HBillNo,string sUser, ref string sReturn) |
| | | { |
| | | |
| | | if (isUse(lngBillKey, ref sReturn)) |
| | |
| | | //æ¥æ¾æ¯å¦ææé |
| | | string sql01 = "select * from Xt_CheckUserRight where HUserID = '" + sUser + "' and HCheckFlowInterID = " + HCheckFlowID + " and HCheckItemID = " + HCheckItemNowID + ""; |
| | | DataSet ds01 = oCn.RunProcReturn(sql01, "Xt_CheckUserRight"); |
| | | if (ds01.Tables[0].Rows.Count == 0) |
| | | if (ds01.Tables[0].Rows.Count == 0)//åæ®åå®¡æ ¸æé为å¤çº§å®¡æ ¸é©³åæé |
| | | { |
| | | sReturn = "æ æéï¼"; |
| | | return false; |
| | |
| | | if (ds != null && ds.Tables.Count > 0 && ds.Tables[0].Rows.Count > 0) |
| | | { |
| | | string HBillType = ds.Tables[0].Rows[0]["HBillType"].ToString(); |
| | | if (HBillType == "1201" || HBillType == "1202" || HBillType == "1203" || HBillType == "1247" || HBillType == "1244" || HBillType == "1251" || HBillType == "1210" || HBillType == "1205" || HBillType == "1250" || HBillType == "1206" || HBillType == "1245" || HBillType == "1239") |
| | | if (HBillType == "1201" || HBillType == "1202" || HBillType == "1203" || HBillType == "1247" || HBillType == "1244" || HBillType == "1251" || HBillType == "1210" || HBillType == "1205" || HBillType == "1250" || HBillType == "1206" || HBillType == "1245" || HBillType == "1239"|| HBillType == "1256") |
| | | { |
| | | //åå®¡æ ¸æ´æ° åæ¶åºå表 å¢å åºå 1201 1202 1203 1247 1244 1251 1210 |
| | | //åå®¡æ ¸æ´æ° åæ¶åºå表 åå°åºå 1205 1250 1206 1245 1239 |
| | |
| | | if (ds != null && ds.Tables.Count > 0 && ds.Tables[0].Rows.Count > 0) |
| | | { |
| | | string HBillType = ds.Tables[0].Rows[0]["HBillType"].ToString(); |
| | | if (HBillType == "1201" || HBillType == "1202" || HBillType == "1203" || HBillType == "1247" || HBillType == "1244" || HBillType == "1251" || HBillType == "1210" || HBillType == "1250" || HBillType == "1206" || HBillType == "1245" || HBillType == "1239") |
| | | if (HBillType == "1201" || HBillType == "1202" || HBillType == "1203" || HBillType == "1247" || HBillType == "1244" || HBillType == "1251" || HBillType == "1210" || HBillType == "1250" || HBillType == "1206" || HBillType == "1245" || HBillType == "1239" || HBillType == "1256") |
| | | { |
| | | //å®¡æ ¸æ´æ° åæ¶åºå表 å¢å åºå 1201 1202 1203 1247 1244 1251 1210 |
| | | //å®¡æ ¸æ´æ° åæ¶åºå表 åå°åºå 1204 1250 1206 1245 1239 |
| | |
| | | { |
| | | return true; |
| | | } |
| | | |
| | | |
| | | //ä¿®æ¹åæ®_APP |
| | | public virtual bool ModifyBill_APP(Int64 lngBillKey, ref string sReturn) |
| | | { |
| | | return true; |
| | | } |
| | | |
| | | //æ°å¢åæ®_APP |
| | | public virtual bool AddBill_APP(ref string sReturn) |
| | | { |
| | | return true; |
| | | } |
| | | |
| | | //å é¤å
³è |
| | | public virtual void DeleteRelation(ref string sReturn, Int64 lngBillKey) |