| | |
| | | public string HPCSNo; //PCSå· |
| | | public int HPosition_x; //PCSæå¨è¡çç´¢å¼ |
| | | public int HPosition_y; //PCSæå¨åçç´¢å¼ |
| | | public int HPageIndex; //æ£åé¢(0:æ£é¢,1:åé¢) |
| | | public string HPageIndex; //æ£åé¢(0:æ£é¢,1:åé¢) |
| | | public string HBadReason; //ä¸è¯åå |
| | | } |
| | | |
| | |
| | | public string HPCSNo; //PCSå· |
| | | public int HPosition_x; //PCSæå¨è¡çç´¢å¼ |
| | | public int HPosition_y; //PCSæå¨åçç´¢å¼ |
| | | public int HPageIndex; //æ£åé¢(0:æ£é¢,1:åé¢) |
| | | public string HPageIndex; //æ£åé¢(0:æ£é¢,1:åé¢) |
| | | public string HBadReason; //ä¸è¯åå |
| | | } |
| | | |
| | |
| | | public string HPCSNo; //PCSå· |
| | | public int HPosition_x; //PCSæå¨è¡çç´¢å¼ |
| | | public int HPosition_y; //PCSæå¨åçç´¢å¼ |
| | | public int HPageIndex; //æ£åé¢(0:æ£é¢,1:åé¢) |
| | | public string HPageIndex; //æ£åé¢(0:æ£é¢,1:åé¢) |
| | | public string HBadReason; //ä¸è¯åå |
| | | } |
| | | |
| | |
| | | public string HPCSNo; //PCSå· |
| | | public int HPosition_x; //PCSæå¨è¡çç´¢å¼ |
| | | public int HPosition_y; //PCSæå¨åçç´¢å¼ |
| | | public int HPageIndex; //æ£åé¢(0:æ£é¢,1:åé¢) |
| | | public string HPageIndex; //æ£åé¢(0:æ£é¢,1:åé¢) |
| | | public string HBadReason; //ä¸è¯åå |
| | | } |
| | | |
| | |
| | | [HttpGet] |
| | | public VRSInner_savePNLBarCodePosition_RequestResult VRSInner_savePNLBarCodePosition(string HBarCode_PNL,double HPNLPosition_x,double HPNLPosition_y) |
| | | { |
| | | LogService.Write("=============================================================================================="); |
| | | LogService.Write("ç¬æ£®VRSå
屿åä¸ä¼ PNLäºç»´ç ä½ç½®ã" + DateTime.Now.ToString("yyyy-MM-dd HH:mm:ss") + "ã"); |
| | | LogService.Write("éå
¥åæ°ãHBarCode_PNLï¼" + HBarCode_PNL + "ï¼HPNLPosition_xï¼" + HPNLPosition_x + "ï¼HPNLPosition_y" + HPNLPosition_y + "ã"); |
| | | |
| | | VRSInner_savePNLBarCodePosition_RequestResult result = new VRSInner_savePNLBarCodePosition_RequestResult(); |
| | | try |
| | | { |
| | |
| | | { |
| | | result.code = "0"; |
| | | result.msg = "ä¸ä¼ 失败ï¼ï¼æå·ä¿¡æ¯ä¸åå¨ï¼ï¼"; |
| | | LogService.Write("è¿åä¿¡æ¯ï¼ã" + JsonConvert.SerializeObject(result) + "ã"); |
| | | LogService.Write("=============================================================================================="); |
| | | return result; |
| | | } |
| | | else |
| | |
| | | |
| | | result.code = "1"; |
| | | result.msg = "ä¸ä¼ æå"; |
| | | LogService.Write("è¿åä¿¡æ¯ï¼ã" + JsonConvert.SerializeObject(result) + "ã"); |
| | | LogService.Write("=============================================================================================="); |
| | | return result; |
| | | } |
| | | catch (Exception e) |
| | | { |
| | | result.code = "0"; |
| | | result.msg = "" + e.Message; |
| | | LogService.Write("è¿åä¿¡æ¯ï¼ã" + JsonConvert.SerializeObject(result) + "ã"); |
| | | LogService.Write("=============================================================================================="); |
| | | return result; |
| | | } |
| | | } |
| | |
| | | [HttpGet] |
| | | public VRSInner_getPNLBarCodePosition_RequestResult VRSInner_getPNLBarCodePosition(string HBarCode_PNL) |
| | | { |
| | | LogService.Write("=============================================================================================="); |
| | | LogService.Write("ç¬æ£®VRSå
å±è·åPNLäºç»´ç ä½ç½®ä¿¡æ¯ã" + DateTime.Now.ToString("yyyy-MM-dd HH:mm:ss") + "ã"); |
| | | LogService.Write("éå
¥åæ°ãHBarCode_PNLï¼" + HBarCode_PNL + "ã"); |
| | | |
| | | VRSInner_getPNLBarCodePosition_RequestResult result = new VRSInner_getPNLBarCodePosition_RequestResult(); |
| | | List<VRSInner_getPNLBarCodePosition_RequestResult_data> dataList = new List<VRSInner_getPNLBarCodePosition_RequestResult_data>(); |
| | | try |
| | |
| | | result.code = "0"; |
| | | result.msg = "PNLäºç»´ç ç§èä½ç½®ä¿¡æ¯è·å失败ï¼ï¼å½åPNLäºç»´ç å¯¹åºæå·æªè®¾ç½®é»è®¤ç§èä½ç½®ï¼ï¼"; |
| | | result.data = null; |
| | | LogService.Write("è¿åä¿¡æ¯ï¼ã" + JsonConvert.SerializeObject(result) + "ã"); |
| | | LogService.Write("=============================================================================================="); |
| | | return result; |
| | | } |
| | | |
| | |
| | | result.code = "1"; |
| | | result.msg = ""; |
| | | result.data = dataList; |
| | | LogService.Write("è¿åä¿¡æ¯ï¼ã" + JsonConvert.SerializeObject(result) + "ã"); |
| | | LogService.Write("=============================================================================================="); |
| | | return result; |
| | | } |
| | | catch (Exception e) |
| | |
| | | result.code = "0"; |
| | | result.msg = "" + e.Message; |
| | | result.data = null; |
| | | LogService.Write("è¿åä¿¡æ¯ï¼ã" + JsonConvert.SerializeObject(result) + "ã"); |
| | | LogService.Write("=============================================================================================="); |
| | | return result; |
| | | } |
| | | } |
| | |
| | | [HttpPost] |
| | | public VRSInner_saveCheckNote_RequestResult VRSInner_saveCheckNote([FromBody] JObject sMainSub) |
| | | { |
| | | LogService.Write("=============================================================================================="); |
| | | LogService.Write("ç¬æ£®VRSå
屿£éªç»æä¸ä¼ ã" + DateTime.Now.ToString("yyyy-MM-dd HH:mm:ss") + "ã"); |
| | | LogService.Write("éå
¥åæ°ãsMainSubï¼" + sMainSub + "ã"); |
| | | |
| | | VRSInner_saveCheckNote_RequestResult result = new VRSInner_saveCheckNote_RequestResult(); |
| | | string msg_success = ""; |
| | | try |
| | |
| | | int HPosition_x = vRSInner_SaveCheckNote_RequestParams[i].param[j].HPosition_x; |
| | | int HPosition_y = vRSInner_SaveCheckNote_RequestParams[i].param[j].HPosition_y; |
| | | string HCheckProc = "ç¬æ£®VRSå
å±"; |
| | | int HPageIndex = vRSInner_SaveCheckNote_RequestParams[i].param[j].HPageIndex; |
| | | string HPageIndex = vRSInner_SaveCheckNote_RequestParams[i].param[j].HPageIndex; |
| | | string HBadReason = vRSInner_SaveCheckNote_RequestParams[i].param[j].HBadReason; |
| | | |
| | | //æ ¹æ®PNLæ¡ç æ¾å°PNL对äºçPNLå¸å±ä¿¡æ¯ãç¶åæ ¹æ®PCSå·å¨PNLå¸å±ä¿¡æ¯ä¸æ¾å°PCS对åºçsetå· |
| | |
| | | "," + HPosition_x + "" + |
| | | "," + HPosition_y + "" + |
| | | ",'" + HCheckProc + "'" + |
| | | "," + HPageIndex + "" + |
| | | ",'" + HPageIndex + "'" + |
| | | ",'" + HBadReason + "'" + |
| | | ",'" + HMaker + "'" + |
| | | ",getdate() " + |
| | |
| | | oCN.Commit(); |
| | | result.code = "1"; |
| | | result.msg = "ä¸ä¼ æåï¼ï¼" + msg_success; |
| | | LogService.Write("è¿åä¿¡æ¯ï¼ã" + JsonConvert.SerializeObject(result) + "ã"); |
| | | LogService.Write("=============================================================================================="); |
| | | return result; |
| | | } |
| | | catch (Exception e) |
| | |
| | | oCN.RollBack(); |
| | | result.code = "0"; |
| | | result.msg = "ä¸ä¼ 失败ï¼ï¼" + e.Message; |
| | | LogService.Write("è¿åä¿¡æ¯ï¼ã" + JsonConvert.SerializeObject(result) + "ã"); |
| | | LogService.Write("=============================================================================================="); |
| | | return result; |
| | | } |
| | | } |
| | |
| | | [HttpGet] |
| | | public VRSOuter_saveSetBarCodePosition_RequestResult VRSOuter_saveSetBarCodePosition(string HBarCode_Set, double HSetPosition_x, double HSetPosition_y) |
| | | { |
| | | LogService.Write("=============================================================================================="); |
| | | LogService.Write("ç¬æ£®VRSå¤å±æåä¸ä¼ setäºç»´ç ä½ç½®ã" + DateTime.Now.ToString("yyyy-MM-dd HH:mm:ss") + "ã"); |
| | | LogService.Write("éå
¥åæ°ãHBarCode_Setï¼" + HBarCode_Set + "ï¼HSetPosition_xï¼" + HSetPosition_x + "ï¼HSetPosition_y" + HSetPosition_y + "ã"); |
| | | |
| | | VRSOuter_saveSetBarCodePosition_RequestResult result = new VRSOuter_saveSetBarCodePosition_RequestResult(); |
| | | try |
| | | { |
| | |
| | | { |
| | | result.code = "0"; |
| | | result.msg = "ä¸ä¼ 失败ï¼ï¼æå·ä¿¡æ¯ä¸åå¨ï¼ï¼"; |
| | | LogService.Write("è¿åä¿¡æ¯ï¼ã" + JsonConvert.SerializeObject(result) + "ã"); |
| | | LogService.Write("=============================================================================================="); |
| | | return result; |
| | | } |
| | | else |
| | |
| | | |
| | | result.code = "1"; |
| | | result.msg = "ä¸ä¼ æå"; |
| | | LogService.Write("è¿åä¿¡æ¯ï¼ã" + JsonConvert.SerializeObject(result) + "ã"); |
| | | LogService.Write("=============================================================================================="); |
| | | return result; |
| | | } |
| | | catch (Exception e) |
| | | { |
| | | result.code = "0"; |
| | | result.msg = "" + e.Message; |
| | | LogService.Write("è¿åä¿¡æ¯ï¼ã" + JsonConvert.SerializeObject(result) + "ã"); |
| | | LogService.Write("=============================================================================================="); |
| | | return result; |
| | | } |
| | | } |
| | |
| | | [HttpGet] |
| | | public VRSOuter_getSetBarCodePosition_RequestResult VRSOuter_getSetBarCodePosition(string HBarCode_Set) |
| | | { |
| | | LogService.Write("=============================================================================================="); |
| | | LogService.Write("ç¬æ£®VRSå¤å±è·åSetäºç»´ç ä½ç½®ä¿¡æ¯ã" + DateTime.Now.ToString("yyyy-MM-dd HH:mm:ss") + "ã"); |
| | | LogService.Write("éå
¥åæ°ãHBarCode_Setï¼" + HBarCode_Set + "ã"); |
| | | |
| | | VRSOuter_getSetBarCodePosition_RequestResult result = new VRSOuter_getSetBarCodePosition_RequestResult(); |
| | | List<VRSOuter_getSetBarCodePosition_RequestResult_data> dataList = new List<VRSOuter_getSetBarCodePosition_RequestResult_data>(); |
| | | try |
| | |
| | | result.code = "0"; |
| | | result.msg = "Setäºç»´ç ç§èä½ç½®ä¿¡æ¯è·å失败ï¼ï¼å½åSetäºç»´ç å¯¹åºæå·æªè®¾ç½®é»è®¤ç§èä½ç½®ï¼ï¼"; |
| | | result.data = null; |
| | | LogService.Write("è¿åä¿¡æ¯ï¼ã" + JsonConvert.SerializeObject(result) + "ã"); |
| | | LogService.Write("=============================================================================================="); |
| | | return result; |
| | | } |
| | | |
| | |
| | | result.code = "1"; |
| | | result.msg = ""; |
| | | result.data = dataList; |
| | | LogService.Write("è¿åä¿¡æ¯ï¼ã" + JsonConvert.SerializeObject(result) + "ã"); |
| | | LogService.Write("=============================================================================================="); |
| | | return result; |
| | | } |
| | | catch (Exception e) |
| | |
| | | result.code = "0"; |
| | | result.msg = "" + e.Message; |
| | | result.data = null; |
| | | LogService.Write("è¿åä¿¡æ¯ï¼ã" + JsonConvert.SerializeObject(result) + "ã"); |
| | | LogService.Write("=============================================================================================="); |
| | | return result; |
| | | } |
| | | } |
| | |
| | | /// <returns></returns> |
| | | [Route("VRSInner/VRSInner_getBarCodeBill_PNL")] |
| | | [HttpGet] |
| | | public object VRSInner_getBarCodeBill_PNL(string HLayOutName, string HMaker) |
| | | public object VRSInner_getBarCodeBill_PNL(string HLayOutName, string HMaker, string HBatchNo) |
| | | { |
| | | try |
| | | { |
| | | ds = oCN.RunProcReturn("exec h_p_Gy_BarCodeBill_PNL_Temp_Insert '" + HLayOutName + "','" + HMaker + "'", "h_p_Gy_BarCodeBill_PNL_Temp_Insert"); |
| | | LogService.Write("=============================================================================================="); |
| | | LogService.Write("ç³è¯·PNLæ¡ç ã" + DateTime.Now.ToString("yyyy-MM-dd HH:mm:ss") + "ã"); |
| | | LogService.Write("éå
¥åæ°ãHLayOutNameï¼" + HLayOutName + "ï¼HMaker:" + HMaker + "ã"); |
| | | |
| | | string sql_checkPNLInfo = "select * from Gy_PNLInfo where HLayOutName = '" + HLayOutName + "'"; |
| | | DataSet ds_checkPNLInfo = oCN.RunProcReturn(sql_checkPNLInfo, "Gy_PNLInfo"); |
| | | if (ds_checkPNLInfo == null || ds_checkPNLInfo.Tables[0].Rows.Count == 0) |
| | | { |
| | | objJsonResult.code = "0"; |
| | | objJsonResult.count = 0; |
| | | objJsonResult.Message = "æå·å¯¹åºçAOIæªç»´æ¤ï¼ï¼"; |
| | | objJsonResult.data = null; |
| | | |
| | | LogService.Write("è¿åä¿¡æ¯ï¼ã" + JsonConvert.SerializeObject(objJsonResult) + "ã"); |
| | | LogService.Write("=============================================================================================="); |
| | | return objJsonResult; |
| | | } |
| | | |
| | | ds = oCN.RunProcReturn("exec h_p_Gy_BarCodeBill_PNL_Temp_Insert '" + HLayOutName + "','" + HMaker + "','" + HBatchNo + "'" , "h_p_Gy_BarCodeBill_PNL_Temp_Insert"); |
| | | if (ds == null || ds.Tables[0].Rows.Count == 0) |
| | | { |
| | | objJsonResult.code = "0"; |
| | | objJsonResult.count = 0; |
| | | objJsonResult.Message = "åå
¥è·åPNLæ¡ç æ¶åçé误ï¼"; |
| | | objJsonResult.data = null; |
| | | LogService.Write("è¿åä¿¡æ¯ï¼ã" + JsonConvert.SerializeObject(objJsonResult) + "ã"); |
| | | LogService.Write("=============================================================================================="); |
| | | return objJsonResult; |
| | | } |
| | | else if (DBUtility.ClsPub.isLong(ds.Tables[0].Rows[0]["HBack"]) == 1) |
| | |
| | | objJsonResult.count = 0; //å¤±è´¥ï¼ |
| | | objJsonResult.Message = DBUtility.ClsPub.isStrNull(ds.Tables[0].Rows[0]["HRemark"]); |
| | | objJsonResult.data = null; |
| | | LogService.Write("è¿åä¿¡æ¯ï¼ã" + JsonConvert.SerializeObject(objJsonResult) + "ã"); |
| | | LogService.Write("=============================================================================================="); |
| | | return objJsonResult; |
| | | } |
| | | else |
| | |
| | | objJsonResult.count = 1; //æåï¼ |
| | | objJsonResult.Message = DBUtility.ClsPub.isStrNull(ds.Tables[0].Rows[0]["HRemark"]); |
| | | objJsonResult.data = ds.Tables[0].Rows[0]["HBarCode"].ToString(); |
| | | LogService.Write("è¿åä¿¡æ¯ï¼ã" + JsonConvert.SerializeObject(objJsonResult) + "ã"); |
| | | LogService.Write("=============================================================================================="); |
| | | return objJsonResult; |
| | | } |
| | | } |
| | |
| | | objJsonResult.count = 0; |
| | | objJsonResult.Message = "ç³è¯·PNLæ¡ç æ¥å£å¤±è´¥ï¼" + e.ToString(); |
| | | objJsonResult.data = null; |
| | | LogService.Write("è¿åä¿¡æ¯ï¼ã" + JsonConvert.SerializeObject(objJsonResult) + "ã"); |
| | | LogService.Write("=============================================================================================="); |
| | | return objJsonResult; |
| | | } |
| | | } |
| | |
| | | [HttpGet] |
| | | public VRSOuter_getDataMapping_RequestResult VRSOuter_getDataMapping(string HBarCode) |
| | | { |
| | | LogService.Write("=============================================================================================="); |
| | | LogService.Write("ç¬æ£®VRSè·ådatamappingä¿¡æ¯ã" + DateTime.Now.ToString("yyyy-MM-dd HH:mm:ss") + "ã"); |
| | | LogService.Write("éå
¥åæ°ãHBarCodeï¼" + HBarCode + "ã"); |
| | | |
| | | VRSOuter_getDataMapping_RequestResult result = new VRSOuter_getDataMapping_RequestResult(); |
| | | List<VRSOuter_getDataMapping_RequestResult_data> dataList = new List<VRSOuter_getDataMapping_RequestResult_data>(); |
| | | try |
| | |
| | | result.code = "1"; |
| | | result.msg = ""; |
| | | result.data = dataList; |
| | | LogService.Write("è¿åä¿¡æ¯ï¼ã" + JsonConvert.SerializeObject(result) + "ã"); |
| | | LogService.Write("=============================================================================================="); |
| | | return result; |
| | | } |
| | | catch (Exception e) |
| | |
| | | result.code = "0"; |
| | | result.msg = "" + e.Message; |
| | | result.data = null; |
| | | LogService.Write("è¿åä¿¡æ¯ï¼ã" + JsonConvert.SerializeObject(result) + "ã"); |
| | | LogService.Write("=============================================================================================="); |
| | | return result; |
| | | } |
| | | } |
| | |
| | | [HttpPost] |
| | | public VRSOuter_saveCheckNote_RequestResult VRSOuter_saveCheckNote([FromBody] JObject sMainSub) |
| | | { |
| | | LogService.Write("=============================================================================================="); |
| | | LogService.Write("ç¬æ£®VRSå¤å±æ£éªç»æä¸ä¼ ã" + DateTime.Now.ToString("yyyy-MM-dd HH:mm:ss") + "ã"); |
| | | LogService.Write("éå
¥åæ°ãsMainSubï¼" + sMainSub + "ã"); |
| | | |
| | | VRSOuter_saveCheckNote_RequestResult result = new VRSOuter_saveCheckNote_RequestResult(); |
| | | string msg_success = ""; |
| | | try |
| | |
| | | int HPosition_x = vRSOuter_SaveCheckNote_RequestParams[i].param[j].HPosition_x; |
| | | int HPosition_y = vRSOuter_SaveCheckNote_RequestParams[i].param[j].HPosition_y; |
| | | string HCheckProc = "ç¬æ£®VRSå¤å±"; |
| | | int HPageIndex = vRSOuter_SaveCheckNote_RequestParams[i].param[j].HPageIndex; |
| | | string HPageIndex = vRSOuter_SaveCheckNote_RequestParams[i].param[j].HPageIndex; |
| | | string HBadReason = vRSOuter_SaveCheckNote_RequestParams[i].param[j].HBadReason; |
| | | |
| | | //æ ¹æ®PNLæ¡ç æ¾å°PNL对äºçPNLå¸å±ä¿¡æ¯ãç¶åæ ¹æ®PCSå·å¨PNLå¸å±ä¿¡æ¯ä¸æ¾å°PCS对åºçsetå· |
| | |
| | | "," + HPosition_x + "" + |
| | | "," + HPosition_y + "" + |
| | | ",'" + HCheckProc + "'" + |
| | | "," + HPageIndex + "" + |
| | | ",'" + HPageIndex + "'" + |
| | | ",'" + HBadReason + "'" + |
| | | ",'" + HMaker + "'" + |
| | | ",getdate() " + |
| | |
| | | oCN.Commit(); |
| | | result.code = "1"; |
| | | result.msg = "ä¸ä¼ æåï¼ï¼" + msg_success; |
| | | LogService.Write("è¿åä¿¡æ¯ï¼ã" + JsonConvert.SerializeObject(result) + "ã"); |
| | | LogService.Write("=============================================================================================="); |
| | | return result; |
| | | } |
| | | catch (Exception e) |
| | |
| | | oCN.RollBack(); |
| | | result.code = "0"; |
| | | result.msg = "ä¸ä¼ 失败ï¼ï¼" + e.Message; |
| | | LogService.Write("è¿åä¿¡æ¯ï¼ã" + JsonConvert.SerializeObject(result) + "ã"); |
| | | LogService.Write("=============================================================================================="); |
| | | return result; |
| | | } |
| | | } |
| | |
| | | [HttpGet] |
| | | public object VRSOuter_getBarCodeBill_SET(string HBarCode_PNL, string HMaker) |
| | | { |
| | | LogService.Write("=============================================================================================="); |
| | | LogService.Write("ç¬æ£®VRSå¤å±ç³è¯·setæ¡ç ã" + DateTime.Now.ToString("yyyy-MM-dd HH:mm:ss") + "ã"); |
| | | LogService.Write("éå
¥åæ°ãHBarCode_PNLï¼" + HBarCode_PNL + "ï¼HMaker:" + HMaker + "ã"); |
| | | |
| | | try |
| | | { |
| | | ds = oCN.RunProcReturn("exec h_p_Gy_BarCodeBill_Set_Temp_Insert '" + HBarCode_PNL + "','" + HMaker + "'", "h_p_Gy_BarCodeBill_Set_Temp_Insert"); |
| | |
| | | objJsonResult.count = 0; |
| | | objJsonResult.Message = "åå
¥è·åSETæ¡ç æ¶åçé误ï¼"; |
| | | objJsonResult.data = null; |
| | | LogService.Write("è¿åä¿¡æ¯ï¼ã" + JsonConvert.SerializeObject(objJsonResult) + "ã"); |
| | | LogService.Write("=============================================================================================="); |
| | | return objJsonResult; |
| | | } |
| | | else if (DBUtility.ClsPub.isLong(ds.Tables[0].Rows[0]["HBack"]) == 1) |
| | |
| | | objJsonResult.count = 0; //å¤±è´¥ï¼ |
| | | objJsonResult.Message = DBUtility.ClsPub.isStrNull(ds.Tables[0].Rows[0]["HRemark"]); |
| | | objJsonResult.data = null; |
| | | LogService.Write("è¿åä¿¡æ¯ï¼ã" + JsonConvert.SerializeObject(objJsonResult) + "ã"); |
| | | LogService.Write("=============================================================================================="); |
| | | return objJsonResult; |
| | | } |
| | | else |
| | |
| | | objJsonResult.count = 1; //æåï¼ |
| | | objJsonResult.Message = DBUtility.ClsPub.isStrNull(ds.Tables[0].Rows[0]["HRemark"]); |
| | | objJsonResult.data = HBarCodeList; |
| | | LogService.Write("è¿åä¿¡æ¯ï¼ã" + JsonConvert.SerializeObject(objJsonResult) + "ã"); |
| | | LogService.Write("=============================================================================================="); |
| | | return objJsonResult; |
| | | } |
| | | } |
| | |
| | | objJsonResult.count = 0; |
| | | objJsonResult.Message = "ç³è¯·SETæ¡ç æ¥å£å¤±è´¥ï¼" + e.ToString(); |
| | | objJsonResult.data = null; |
| | | LogService.Write("è¿åä¿¡æ¯ï¼ã" + JsonConvert.SerializeObject(objJsonResult) + "ã"); |
| | | LogService.Write("=============================================================================================="); |
| | | return objJsonResult; |
| | | } |
| | | } |
| | |
| | | [HttpGet] |
| | | public AVI_getDataMapping_RequestResult AVI_getDataMapping(string HBarCode) |
| | | { |
| | | LogService.Write("=============================================================================================="); |
| | | LogService.Write("AVIè·ådatamappingæ°æ®ã" + DateTime.Now.ToString("yyyy-MM-dd HH:mm:ss") + "ã"); |
| | | LogService.Write("éå
¥åæ°ãHBarCodeï¼" + HBarCode + "ã"); |
| | | |
| | | AVI_getDataMapping_RequestResult result = new AVI_getDataMapping_RequestResult(); |
| | | List<AVI_getDataMapping_RequestResult_data> dataList = new List<AVI_getDataMapping_RequestResult_data>(); |
| | | try |
| | |
| | | result.code = "0"; |
| | | result.msg = "mappingä¿¡æ¯è·å失败ï¼ï¼setæ¡ç ä¸åå¨ï¼ï¼"; |
| | | result.data = null; |
| | | LogService.Write("è¿åä¿¡æ¯ï¼ã" + JsonConvert.SerializeObject(result) + "ã"); |
| | | LogService.Write("=============================================================================================="); |
| | | return result; |
| | | } |
| | | |
| | |
| | | result.code = "1"; |
| | | result.msg = ""; |
| | | result.data = dataList; |
| | | LogService.Write("è¿åä¿¡æ¯ï¼ã" + JsonConvert.SerializeObject(result) + "ã"); |
| | | LogService.Write("=============================================================================================="); |
| | | return result; |
| | | } |
| | | catch (Exception e) |
| | |
| | | result.code = "0"; |
| | | result.msg = "" + e.Message; |
| | | result.data = null; |
| | | LogService.Write("è¿åä¿¡æ¯ï¼ã" + JsonConvert.SerializeObject(result) + "ã"); |
| | | LogService.Write("=============================================================================================="); |
| | | return result; |
| | | } |
| | | } |
| | |
| | | [HttpPost] |
| | | public AVI_saveCheckNote_RequestResult AVI_saveCheckNote([FromBody] JObject sMainSub) |
| | | { |
| | | LogService.Write("=============================================================================================="); |
| | | LogService.Write("AVIæ£éªç»æä¸ä¼ ã" + DateTime.Now.ToString("yyyy-MM-dd HH:mm:ss") + "ã"); |
| | | LogService.Write("éå
¥åæ°ãsMainSubï¼" + sMainSub + "ã"); |
| | | |
| | | AVI_saveCheckNote_RequestResult result = new AVI_saveCheckNote_RequestResult(); |
| | | string msg_success = ""; |
| | | try |
| | |
| | | for (int j = 0; j < aVI_SaveCheckNote_RequestParams[i].param.Count; j++) |
| | | { |
| | | string HBarCode = aVI_SaveCheckNote_RequestParams[i].param[j].HBarCode; |
| | | string HSetNo = ""; |
| | | string HBarCode_PNL = ""; |
| | | string HSetNo = HBarCode.Substring(HBarCode.Length - 2, 2); |
| | | string HPCSNo = aVI_SaveCheckNote_RequestParams[i].param[j].HPCSNo; |
| | | int HPosition_x = aVI_SaveCheckNote_RequestParams[i].param[j].HPosition_x; |
| | | int HPosition_y = aVI_SaveCheckNote_RequestParams[i].param[j].HPosition_y; |
| | | string HCheckProc = "AVI"; |
| | | int HPageIndex = aVI_SaveCheckNote_RequestParams[i].param[j].HPageIndex; |
| | | string HPageIndex = aVI_SaveCheckNote_RequestParams[i].param[j].HPageIndex; |
| | | string HBadReason = aVI_SaveCheckNote_RequestParams[i].param[j].HBadReason; |
| | | |
| | | //æ ¹æ®PNLæ¡ç æ¾å°PNL对äºçPNLå¸å±ä¿¡æ¯ãç¶åæ ¹æ®PCSå·å¨PNLå¸å±ä¿¡æ¯ä¸æ¾å°PCS对åºçsetå· |
| | | string sql_set = "" + |
| | | "select distinct " + |
| | | " b.HSetNo " + |
| | | "from Gy_PNLInfo as a " + |
| | | "inner join Gy_PNLInfoSub as b on a.HInterID = b.HInterID " + |
| | | "where a.HLayOutName in " + |
| | | " ( " + |
| | | " select HLayOutName from Gy_BarCodeBill_PNL_Temp where HBarCode = '" + HBarCode + "' " + |
| | | //" union " + |
| | | //" select HLayOutName from Gy_BarCodeBill_PNL_His where HBarCode = '" + HBarCode + "' " + |
| | | " ) " + |
| | | "and b.HPCSNo = '" + HPCSNo + "' "; |
| | | ds = oCN.RunProcReturn(sql_set, "Gy_PNLInfo"); |
| | | //æ ¹æ®setæ¡ç ç¼å·ï¼è·åsetæå±çPNLæ¡ç ç¼å· |
| | | string sql_PNLBarCode = "" + |
| | | //"select * from Gy_BarCodeBill_Set_His where HBarCode = '" + HBarCode + "' " + |
| | | //"union " + |
| | | "select * from Gy_BarCodeBill_Set_Temp where HBarCode = '" + HBarCode + "' "; |
| | | ds = oCN.RunProcReturn(sql_PNLBarCode, "Gy_BarCodeBill_Set_Temp"); |
| | | if (ds != null && ds.Tables.Count > 0 && ds.Tables[0].Rows.Count > 0) |
| | | { |
| | | HSetNo = DBUtility.ClsPub.isStrNull(ds.Tables[0].Rows[0]["HSetNo"]); |
| | | HBarCode_PNL = DBUtility.ClsPub.isStrNull(ds.Tables[0].Rows[0]["HBarCode_PNL"]); |
| | | } |
| | | |
| | | string sql = "insert into QC_CheckNote_PNL_Temp(HBarCode,HSetNo,HPCSNo,HPosition_x,HPosition_y,HCheckProc,HPageIndex,HBadReason,HMaker,HMakeDate) " + |
| | | "values(" + |
| | | "'" + HBarCode + "'" + |
| | | "'" + HBarCode_PNL + "'" + |
| | | ",'" + HSetNo + "'" + |
| | | ",'" + HPCSNo + "'" + |
| | | "," + HPosition_x + "" + |
| | | "," + HPosition_y + "" + |
| | | ",'" + HCheckProc + "'" + |
| | | "," + HPageIndex + "" + |
| | | ",'" + HPageIndex + "'" + |
| | | ",'" + HBadReason + "'" + |
| | | ",'" + HMaker + "'" + |
| | | ",getdate() " + |
| | |
| | | oCN.Commit(); |
| | | result.code = "1"; |
| | | result.msg = "ä¸ä¼ æåï¼ï¼" + msg_success; |
| | | LogService.Write("è¿åä¿¡æ¯ï¼ã" + JsonConvert.SerializeObject(result) + "ã"); |
| | | LogService.Write("=============================================================================================="); |
| | | return result; |
| | | } |
| | | catch (Exception e) |
| | |
| | | oCN.RollBack(); |
| | | result.code = "0"; |
| | | result.msg = "ä¸ä¼ 失败ï¼ï¼" + e.Message; |
| | | LogService.Write("è¿åä¿¡æ¯ï¼ã" + JsonConvert.SerializeObject(result) + "ã"); |
| | | LogService.Write("=============================================================================================="); |
| | | return result; |
| | | } |
| | | } |
| | |
| | | [HttpGet] |
| | | public DC_getDataMapping_RequestResult DC_getDataMapping(string HBarCode) |
| | | { |
| | | LogService.Write("=============================================================================================="); |
| | | LogService.Write("çµæµè·ådatamappingæ°æ®ã" + DateTime.Now.ToString("yyyy-MM-dd HH:mm:ss") + "ã"); |
| | | LogService.Write("éå
¥åæ°ãHBarCodeï¼" + HBarCode + "ã"); |
| | | |
| | | DC_getDataMapping_RequestResult result = new DC_getDataMapping_RequestResult(); |
| | | List<DC_getDataMapping_RequestResult_data> dataList = new List<DC_getDataMapping_RequestResult_data>(); |
| | | try |
| | |
| | | result.code = "0"; |
| | | result.msg = "mappingä¿¡æ¯è·å失败ï¼ï¼setæ¡ç ä¸åå¨ï¼ï¼"; |
| | | result.data = null; |
| | | LogService.Write("è¿åä¿¡æ¯ï¼ã" + JsonConvert.SerializeObject(result) + "ã"); |
| | | LogService.Write("=============================================================================================="); |
| | | return result; |
| | | } |
| | | |
| | |
| | | result.code = "1"; |
| | | result.msg = ""; |
| | | result.data = dataList; |
| | | LogService.Write("è¿åä¿¡æ¯ï¼ã" + JsonConvert.SerializeObject(result) + "ã"); |
| | | LogService.Write("=============================================================================================="); |
| | | return result; |
| | | } |
| | | catch (Exception e) |
| | |
| | | result.code = "0"; |
| | | result.msg = "" + e.Message; |
| | | result.data = null; |
| | | LogService.Write("è¿åä¿¡æ¯ï¼ã" + JsonConvert.SerializeObject(result) + "ã"); |
| | | LogService.Write("=============================================================================================="); |
| | | return result; |
| | | } |
| | | } |
| | |
| | | [HttpPost] |
| | | public DC_saveCheckNote_RequestResult DC_saveCheckNote([FromBody] JObject sMainSub) |
| | | { |
| | | LogService.Write("=============================================================================================="); |
| | | LogService.Write("çµæµæ£éªç»æä¸ä¼ ã" + DateTime.Now.ToString("yyyy-MM-dd HH:mm:ss") + "ã"); |
| | | LogService.Write("éå
¥åæ°ãsMainSubï¼" + sMainSub + "ã"); |
| | | |
| | | DC_saveCheckNote_RequestResult result = new DC_saveCheckNote_RequestResult(); |
| | | string msg_success = ""; |
| | | try |
| | |
| | | int HPosition_x = dC_SaveCheckNote_RequestParams[i].param[j].HPosition_x; |
| | | int HPosition_y = dC_SaveCheckNote_RequestParams[i].param[j].HPosition_y; |
| | | string HCheckProc = "çµæµ"; |
| | | int HPageIndex = dC_SaveCheckNote_RequestParams[i].param[j].HPageIndex; |
| | | string HPageIndex = dC_SaveCheckNote_RequestParams[i].param[j].HPageIndex; |
| | | string HBadReason = dC_SaveCheckNote_RequestParams[i].param[j].HBadReason; |
| | | |
| | | //æ ¹æ®setæ¡ç ç¼å·ï¼è·åsetæå±çPNLæ¡ç ç¼å· |
| | |
| | | "," + HPosition_x + "" + |
| | | "," + HPosition_y + "" + |
| | | ",'" + HCheckProc + "'" + |
| | | "," + HPageIndex + "" + |
| | | ",'" + HPageIndex + "'" + |
| | | ",'" + HBadReason + "'" + |
| | | ",'" + HMaker + "'" + |
| | | ",getdate() " + |
| | |
| | | oCN.Commit(); |
| | | result.code = "1"; |
| | | result.msg = "ä¸ä¼ æåï¼ï¼" + msg_success; |
| | | LogService.Write("è¿åä¿¡æ¯ï¼ã" + JsonConvert.SerializeObject(result) + "ã"); |
| | | LogService.Write("=============================================================================================="); |
| | | return result; |
| | | } |
| | | catch (Exception e) |
| | |
| | | oCN.RollBack(); |
| | | result.code = "0"; |
| | | result.msg = "ä¸ä¼ 失败ï¼ï¼" + e.Message; |
| | | LogService.Write("è¿åä¿¡æ¯ï¼ã" + JsonConvert.SerializeObject(result) + "ã"); |
| | | LogService.Write("=============================================================================================="); |
| | | return result; |
| | | } |
| | | } |
| | |
| | | [HttpGet] |
| | | public JGG_getDataMapping_RequestResult JGG_getDataMapping(string HBarCode) |
| | | { |
| | | LogService.Write("=============================================================================================="); |
| | | LogService.Write("æ¿å
å²è·ådatamappingæ°æ®ã" + DateTime.Now.ToString("yyyy-MM-dd HH:mm:ss") + "ã"); |
| | | LogService.Write("éå
¥åæ°ãHBarCodeï¼" + HBarCode + "ã"); |
| | | |
| | | JGG_getDataMapping_RequestResult result = new JGG_getDataMapping_RequestResult(); |
| | | List<JGG_getDataMapping_RequestResult_data> dataList = new List<JGG_getDataMapping_RequestResult_data>(); |
| | | try |
| | |
| | | result.code = "0"; |
| | | result.msg = "mappingä¿¡æ¯è·å失败ï¼ï¼setæ¡ç ä¸åå¨ï¼ï¼"; |
| | | result.data = null; |
| | | LogService.Write("è¿åä¿¡æ¯ï¼ã" + JsonConvert.SerializeObject(result) + "ã"); |
| | | LogService.Write("=============================================================================================="); |
| | | return result; |
| | | } |
| | | |
| | |
| | | result.code = "1"; |
| | | result.msg = ""; |
| | | result.data = dataList; |
| | | LogService.Write("è¿åä¿¡æ¯ï¼ã" + JsonConvert.SerializeObject(result) + "ã"); |
| | | LogService.Write("=============================================================================================="); |
| | | return result; |
| | | } |
| | | catch (Exception e) |
| | |
| | | result.code = "0"; |
| | | result.msg = "" + e.Message; |
| | | result.data = null; |
| | | LogService.Write("è¿åä¿¡æ¯ï¼ã" + JsonConvert.SerializeObject(result) + "ã"); |
| | | LogService.Write("=============================================================================================="); |
| | | return result; |
| | | } |
| | | } |