| | |
| | | } |
| | | #endregion |
| | | |
| | | #region å·¡æ£åå页å表 |
| | | [Route("QC_PatrolProcCheckOtherBill/QC_PatrolProcCheckOtherBillListPage")] |
| | | [HttpGet] |
| | | public object QC_PatrolProcCheckOtherBillListPage(string sWhere, string user, int page, int size) |
| | | { |
| | | try |
| | | { |
| | | List<object> columnNameList = new List<object>(); |
| | | //ç¼è¾æé |
| | | if (!DBUtility.ClsPub.Security_Log_second("QC_PatrolProcCheckOtherBill_Query", 1, false, user)) |
| | | { |
| | | objJsonResult.code = "0"; |
| | | objJsonResult.count = 0; |
| | | objJsonResult.Message = "æ æ¥çæéï¼"; |
| | | objJsonResult.data = null; |
| | | return objJsonResult; |
| | | } |
| | | sWhere = sWhere.Replace("'", "''"); |
| | | if (sWhere == null || sWhere.Equals("")) |
| | | { |
| | | ds = oCN.RunProcReturn("exec h_p_QC_PatrolProcCheckOtherBillListPage" + page + "," + size + ",''", "h_p_QC_PatrolProcCheckOtherBillListPage"); |
| | | } |
| | | else |
| | | { |
| | | ds = oCN.RunProcReturn("exec h_p_QC_PatrolProcCheckOtherBillListPage " + page + "," + size + ",'" + sWhere + "'", "h_p_QC_PatrolProcCheckOtherBillListPage"); |
| | | } |
| | | |
| | | //æ·»å åå |
| | | foreach (DataColumn col in ds.Tables[0].Columns) |
| | | { |
| | | Type dataType = col.DataType; |
| | | string ColmString = "{\"ColmCols\":\"" + col.ColumnName + "\",\"ColmType\":\"" + dataType.Name + "\"}"; |
| | | columnNameList.Add(JsonConvert.DeserializeObject(ColmString));//è·åå°DataColumnå对象çåå |
| | | } |
| | | |
| | | objJsonResult.code = "1"; |
| | | objJsonResult.count = int.Parse(ds.Tables[1].Rows[0]["count"].ToString()); |
| | | objJsonResult.Message = "Sucessï¼"; |
| | | objJsonResult.list = columnNameList; |
| | | objJsonResult.data = ds.Tables[0]; |
| | | return objJsonResult; |
| | | } |
| | | catch (Exception e) |
| | | { |
| | | objJsonResult.code = "0"; |
| | | objJsonResult.count = 0; |
| | | objJsonResult.Message = "Exceptionï¼" + e.ToString(); |
| | | objJsonResult.data = null; |
| | | return objJsonResult; |
| | | } |
| | | } |
| | | #endregion |
| | | |
| | | #region å·¡æ£åç¼è¾åæ¾ |
| | | [Route("QC_PatrolProcCheckOtherBill/QC_PatrolProcCheckOtherBillList_Edit")] |
| | | [HttpGet] |
| | |
| | | BillNew.omodel.HProcExchBillNo = ClsPub.isStrNull(mainList[0].HProcExchBillNo); |
| | | BillNew.omodel.HProcExchQty = ClsPub.isLong(mainList[0].HProcExchQty); |
| | | BillNew.omodel.HMaterID = ClsPub.isLong(mainList[0].HMaterID); |
| | | BillNew.omodel.HProcID = ClsPub.isLong(mainList[0].HProcID); |
| | | BillNew.omodel.HFirstCheckEmp = ClsPub.isLong(mainList[0].HFirstCheckEmp); |
| | | BillNew.omodel.HLastResult = ClsPub.isBool(mainList[0].HLastResult); |
| | | BillNew.omodel.HMainSourceInterID = ClsPub.isLong(mainList[0].HMainSourceInterID); |
| | |
| | | oSub.HInspectValB = DBUtility.ClsPub.isLong(mainList[0].HInspectValB == null ? 0 : mainList[0].HInspectValB); |
| | | oSub.HTargetValB = DBUtility.ClsPub.isLong(mainList[0].HTargetValB == null ? 0 : mainList[0].HTargetValB); |
| | | |
| | | oSub.HInspectVal= DBUtility.ClsPub.isStrNull(mainList[0].HInspectVal); |
| | | oSub.HTargetVal= DBUtility.ClsPub.isStrNull(mainList[0].HTargetVal); |
| | | oSub.HUpLimit= DBUtility.ClsPub.isStrNull(mainList[0].HUpLimit); |
| | | oSub.HDownLimit= DBUtility.ClsPub.isStrNull(mainList[0].HDownLimit); |
| | | oSub.HInspectVal= DBUtility.ClsPub.isStrNull(subList[i].HInspectVal); |
| | | oSub.HTargetVal= DBUtility.ClsPub.isStrNull(subList[i].HTargetVal); |
| | | oSub.HUpLimit= DBUtility.ClsPub.isStrNull(subList[i].HUpLimit); |
| | | oSub.HDownLimit= DBUtility.ClsPub.isStrNull(subList[i].HDownLimit); |
| | | //* |
| | | oSub.HUpOffSet= DBUtility.ClsPub.isStrNull(subList[i].HUpOffSet); |
| | | oSub.HDownOffSet= DBUtility.ClsPub.isStrNull(subList[i].HDownOffSet); |
| | |
| | | #region åºå/å·¥åº æ£éªåæ ¹æ®æºåç±»åè·åä¿¡æ¯-æºåä¸ºå·¥åºæµè½¬å¡ |
| | | [Route("QC_PatrolProcCheckOtherBill/get_ProcessExchangeBill")] |
| | | [HttpGet] |
| | | public object get_ProcessExchangeBill(string HInterID, string user) |
| | | public object get_ProcessExchangeBill(string HInterID, string HEntryID, string user) |
| | | { |
| | | try |
| | | { |
| | |
| | | switch (oSystemParameter.omodel.QC_FirstPieceCheckBill_QCSchemeSource) |
| | | { |
| | | case "å·¥åº": |
| | | sql = "exec h_p_QC_FirstPiece_GetProcessExchangeBillList " + "'å·¥åº','" + HInterID + "'"; |
| | | sql = "exec h_p_QC_FirstPiece_GetProcessExchangeBillList " + "'å·¥åº','" + HInterID + "','" + HEntryID + "'"; |
| | | break; |
| | | case "ç©æ": |
| | | sql = "exec h_p_QC_FirstPiece_GetProcessExchangeBillList " + "'ç©æ','" + HInterID + "'"; |
| | | sql = "exec h_p_QC_FirstPiece_GetProcessExchangeBillList " + "'ç©æ','" + HInterID + "','" + HEntryID + "'"; |
| | | break; |
| | | case "å·¥èºè·¯çº¿": |
| | | sql = "exec h_p_QC_FirstPiece_GetProcessExchangeBillList " + "'å·¥èºè·¯çº¿','" + HInterID + "'"; |
| | | sql = "exec h_p_QC_FirstPiece_GetProcessExchangeBillList " + "'å·¥èºè·¯çº¿','" + HInterID + "','" + HEntryID + "'"; |
| | | break; |
| | | } |
| | | |