| | |
| | | oItem.HDate = convertFromMillisecondsToDateString(HDate_Temp, "yyyy-MM-dd"); |
| | | } |
| | | |
| | | if (keys.Contains("selectField_ls9ma7h9")) |
| | | if (keys.Contains("textField_mc8uekgv")) |
| | | { |
| | | oItem.HArea = response.Body.Result[i].FormData["selectField_ls9ma7h9"].ToString().Replace("'", ""); |
| | | oItem.HArea = response.Body.Result[i].FormData["textField_mc8uekgv"].ToString().Replace("'", ""); |
| | | } |
| | | |
| | | if (keys.Contains("selectField_ls9ma7h7")) |
| | |
| | | HDeptID = ds.Tables[0].Rows[0]["HDeptID"].ToString(); |
| | | } |
| | | oItem.HDeptID = int.Parse(HDeptID); |
| | | ds = oCN.RunProcReturn("select * from Gy_Group with(nolock) where HName='" + oItem.HGroupName + "'", "Gy_Group"); |
| | | //çç»ä¸ºæäº¤äººççç» |
| | | //ds = oCN.RunProcReturn("select * from Gy_Group with(nolock) where HName='" + oItem.HGroupName + "'", "Gy_Group"); |
| | | //string HGroupID = "0"; |
| | | //if (ds.Tables[0].Rows.Count > 0) |
| | | //{ |
| | | // HGroupID = ds.Tables[0].Rows[0]["HItemID"].ToString(); |
| | | //} |
| | | //oItem.HGroupID = int.Parse(HGroupID); |
| | | string input = getProcessInstanceResponse.Body.Result.Title; |
| | | int index = input.IndexOf("æäº¤"); |
| | | string HGroupEmpName = ""; |
| | | if (index > 0) |
| | | { |
| | | HGroupEmpName = input.Substring(0, index).Trim();//æªåæäº¤äººåç§°å³çç»é¿åç§° |
| | | } |
| | | ds = oCN.RunProcReturn("select * from Gy_Employee with(nolock) where HName='" + HGroupEmpName + "'", "Gy_Employee"); |
| | | string HGroupID = "0"; |
| | | if (ds.Tables[0].Rows.Count > 0) |
| | | { |
| | | HGroupID = ds.Tables[0].Rows[0]["HItemID"].ToString(); |
| | | HGroupID = ds.Tables[0].Rows[0]["HGroupID"].ToString(); |
| | | } |
| | | oItem.HGroupID = int.Parse(HGroupID); |
| | | |
| | | |
| | | |
| | | //ååºååæç»å
容 |
| | | string tableFieldValue = getProcessInstanceResponse.Body.Result.FormComponentValues[11].Value; |
| | | List<Row> rows = Newtonsoft.Json.JsonConvert.DeserializeObject<List<Row>>(tableFieldValue); |
| | |
| | | string msg = ""; |
| | | try |
| | | { |
| | | if (getData_ErrWorkTimesRequest(startTime, endTime, ref msg) == false) |
| | | string sErrMsg = ""; |
| | | if (oSystemParameter.ShowBill(ref sErrMsg) == true) |
| | | { |
| | | objJsonResult.code = "0"; |
| | | objJsonResult.count = 0; |
| | | objJsonResult.Message = "Exceptionï¼" + msg; |
| | | if ( oSystemParameter.omodel.WMS_CampanyName == "æ·»åº·ç§æ") //ç³»ç»åæ° å®¢æ·å®å¶ååç§° 空ç½ä¸ºéç¨ |
| | | { |
| | | //添康ä¸ç¨ |
| | | if (getData_ErrWorkTimesRequest(startTime, endTime, ref msg) == false) |
| | | { |
| | | objJsonResult.code = "0"; |
| | | objJsonResult.count = 0; |
| | | objJsonResult.Message = "Exceptionï¼" + msg; |
| | | objJsonResult.data = null; |
| | | return objJsonResult; |
| | | } |
| | | } |
| | | else |
| | | { |
| | | objJsonResult.code = "0"; |
| | | objJsonResult.count = 0; |
| | | objJsonResult.Message = "客æ·é误"; |
| | | objJsonResult.data = null; |
| | | return objJsonResult; |
| | | } |
| | | objJsonResult.code = "1"; |
| | | objJsonResult.count = 1; |
| | | objJsonResult.Message = "Sucess"; |
| | | objJsonResult.data = null; |
| | | return objJsonResult; |
| | | } |
| | | |
| | | objJsonResult.code = "1"; |
| | | objJsonResult.count = 1; |
| | | objJsonResult.Message = "Sucessï¼"; |
| | | objJsonResult.data = null; |
| | | return objJsonResult; |
| | | else |
| | | { |
| | | objJsonResult.code = "0"; |
| | | objJsonResult.count = 0; |
| | | objJsonResult.Message = "è·åç³»ç»åæ°å¤±è´¥ï¼ " + sErrMsg; |
| | | objJsonResult.data = null; |
| | | return objJsonResult; |
| | | } |
| | | } |
| | | catch (Exception e) |
| | | { |