| | |
| | | sReturn = "忮已ç¦ç¨ï¼ä¸å
许éå¤ç¦ç¨ï¼"; |
| | | return false; |
| | | } |
| | | |
| | | DataSet DsHavChildCodes = oCn.RunProcReturn("select HItemID from " + MvarItemKey + " where HStopflag=0 and HParentID='" + HItemID + "'", MvarItemKey, ref Pub_Class.ClsPub.sExeReturnInfo); |
| | | if (DsHavChildCodes.Tables[0].Rows.Count > 0) |
| | | { |
| | | sReturn = "æéåæ®å卿ªç¦ç¨çå项ç®,ä¸å
许ç¦ç¨ï¼"; |
| | | return false; |
| | | } |
| | | |
| | | //ç¦ç¨ |
| | | oCn.BeginTran(); |
| | | oCn.RunProc("Update " + MvarItemKey + " set HStopflag=1,HStopEmp = '" + HMaker + "',HStopTime=getdate() where HItemID=" + HItemID, ref Pub_Class.ClsPub.sExeReturnInfo); |
| | |
| | | sReturn = "åæ®æªç¦ç¨ï¼ä¸å
许åç¦ç¨ï¼"; |
| | | return false; |
| | | } |
| | | |
| | | DataSet DsHavChildCodes = oCn.RunProcReturn("select HItemID from " + MvarItemKey + " where HStopflag=1 and HItemID='" + DS.Tables[0].Rows[0]["HParentID"].ToString() + "'", MvarItemKey, ref Pub_Class.ClsPub.sExeReturnInfo); |
| | | if (DsHavChildCodes.Tables[0].Rows.Count > 0) |
| | | { |
| | | sReturn = "æéåæ®ä¸çº§é¡¹ç®å·²ç¦ç¨,ä¸å
许åç¦ç¨ï¼"; |
| | | return false; |
| | | } |
| | | |
| | | //ç¦ç¨ |
| | | oCn.BeginTran(); |
| | | oCn.RunProc("Update " + MvarItemKey + " set HStopflag=0,HStopEmp = '',HStopTime=null where HItemID=" + HItemID, ref Pub_Class.ClsPub.sExeReturnInfo); |