| | |
| | | objJsonResult.data = 1; |
| | | return objJsonResult; |
| | | } |
| | | //å·²å®¡æ ¸ä¸å
è®¸ä¿®æ¹ |
| | | DataSet dss; |
| | | dss = oCn.RunProcReturn("select * from Gy_WorkShift where HInterID=" + oItem.HInterID, "Gy_Group"); |
| | | //夿æ¯å¦å¯ç¼è¾ |
| | | if (dss.Tables[0].Rows[0]["HCheckEmp"].ToString() != "") |
| | | { |
| | | objJsonResult.code = "0"; |
| | | objJsonResult.count = 0; |
| | | objJsonResult.Message = "æ¤åæ®ç¶æå·²ç»å®¡æ ¸ï¼ä¸å
许修æ¹ï¼"; |
| | | objJsonResult.data = null; |
| | | return objJsonResult; |
| | | } |
| | | } |
| | | else if (refSav == "Add") |
| | | { |
| | | //å¤æä»£ç æ¯å¦éå¤ |
| | | DataSet dss; |
| | | dss = oCn.RunProcReturn("select * from Gy_WorkShift where HNumber='" + oItem.HNumber + "'", "Gy_WorkShift"); |
| | | //夿æ¯å¦å¯ç¼è¾ |
| | | if (dss.Tables[0].Rows.Count != 0) |
| | | { |
| | | objJsonResult.code = "0"; |
| | | objJsonResult.count = 0; |
| | | objJsonResult.Message = "忮代ç éå¤ä¸å
许æ°å¢"; |
| | | objJsonResult.data = null; |
| | | return objJsonResult; |
| | | } |
| | | } |
| | | oBill.omodel = oItem; |
| | | } |
| | |
| | | { |
| | | objJsonResult.code = "0"; |
| | | objJsonResult.count = 0; |
| | | objJsonResult.Message = "æªæ¥è¯¢å°å½åçæ¬¡ï¼"; |
| | | objJsonResult.Message = "[3791-2-011]æªæ¥è¯¢å°å½åçæ¬¡ï¼"; |
| | | objJsonResult.data = null; |
| | | return objJsonResult; |
| | | } |
| | |
| | | { |
| | | objJsonResult.code = "1"; |
| | | objJsonResult.count = 1; |
| | | objJsonResult.Message = "æåï¼"; |
| | | objJsonResult.Message = "[0000-1-037]æåï¼"; |
| | | objJsonResult.data = ds.Tables[0]; |
| | | return objJsonResult; |
| | | } |
| | |
| | | { |
| | | objJsonResult.code = "0"; |
| | | objJsonResult.count = 0; |
| | | objJsonResult.Message = "è¿åçæ¬¡ä¿¡æ¯å¤±è´¥ï¼" + e.ToString(); |
| | | objJsonResult.Message = "[0000-1-038]è¿åçæ¬¡ä¿¡æ¯å¤±è´¥ï¼" + e.ToString(); |
| | | objJsonResult.data = null; |
| | | return objJsonResult; |
| | | } |