| | |
| | | public class VRSInner_getPNLBarCodePosition_RequestResult_data |
| | | { |
| | | public string HBarCode_PNL; //PNLæ¡ç å· |
| | | public string HPosition_x; //äºç»´ç xåæ |
| | | public string HPosition_y; //äºç»´ç yåæ |
| | | public double HPosition_x; //äºç»´ç xåæ |
| | | public double HPosition_y; //äºç»´ç yåæ |
| | | } |
| | | |
| | | #endregion |
| | |
| | | public class VRSOuter_getSetBarCodePosition_RequestResult_data |
| | | { |
| | | public string HBarCode_Set; //Setæ¡ç å· |
| | | public string HPosition_x; //äºç»´ç xåæ |
| | | public string HPosition_y; //äºç»´ç yåæ |
| | | public double HPosition_x; //äºç»´ç xåæ |
| | | public double HPosition_y; //äºç»´ç yåæ |
| | | } |
| | | |
| | | #endregion |
| | |
| | | #region ç¬æ£®VRSå
屿åä¸ä¼ PNLäºç»´ç ä½ç½® æ¥å£ |
| | | [Route("VRSInner/VRSInner_savePNLBarCodePosition")] |
| | | [HttpGet] |
| | | public VRSInner_savePNLBarCodePosition_RequestResult VRSInner_savePNLBarCodePosition(string HBarCode_PNL,string HPNLPosition_x,string HPNLPosition_y) |
| | | public VRSInner_savePNLBarCodePosition_RequestResult VRSInner_savePNLBarCodePosition(string HBarCode_PNL,double HPNLPosition_x,double HPNLPosition_y) |
| | | { |
| | | VRSInner_savePNLBarCodePosition_RequestResult result = new VRSInner_savePNLBarCodePosition_RequestResult(); |
| | | try |
| | |
| | | } |
| | | |
| | | string sql_save = "" + |
| | | "update Gy_PNLInfo set HPNLPosition_x = '" + HPNLPosition_x + "',HPNLPosition_y = '" + HPNLPosition_y + "' where HLayOutName = '" + HLayOutName + "'"; |
| | | "update Gy_PNLInfo set HPNLPosition_x = " + HPNLPosition_x + ",HPNLPosition_y = " + HPNLPosition_y + " where HLayOutName = '" + HLayOutName + "'"; |
| | | oCN.RunProc(sql_save); |
| | | |
| | | result.code = "1"; |
| | |
| | | { |
| | | VRSInner_getPNLBarCodePosition_RequestResult_data data = new VRSInner_getPNLBarCodePosition_RequestResult_data(); |
| | | data.HBarCode_PNL = HBarCode_PNL; |
| | | data.HPosition_x = DBUtility.ClsPub.isStrNull(ds.Tables[0].Rows[i]["HPNLPosition_x"]); |
| | | data.HPosition_y = DBUtility.ClsPub.isStrNull(ds.Tables[0].Rows[i]["HPNLPosition_y"]); |
| | | data.HPosition_x = DBUtility.ClsPub.isDoule(ds.Tables[0].Rows[i]["HPNLPosition_x"]); |
| | | data.HPosition_y = DBUtility.ClsPub.isDoule(ds.Tables[0].Rows[i]["HPNLPosition_y"]); |
| | | dataList.Add(data); |
| | | } |
| | | |
| | |
| | | #region ç¬æ£®VRSå¤å±æåä¸ä¼ setäºç»´ç ä½ç½® æ¥å£ |
| | | [Route("VRSOuter/VRSOuter_saveSetBarCodePosition")] |
| | | [HttpGet] |
| | | public VRSOuter_saveSetBarCodePosition_RequestResult VRSOuter_saveSetBarCodePosition(string HBarCode_Set, string HSetPosition_x, string HSetPosition_y) |
| | | public VRSOuter_saveSetBarCodePosition_RequestResult VRSOuter_saveSetBarCodePosition(string HBarCode_Set, double HSetPosition_x, double HSetPosition_y) |
| | | { |
| | | VRSOuter_saveSetBarCodePosition_RequestResult result = new VRSOuter_saveSetBarCodePosition_RequestResult(); |
| | | try |
| | |
| | | |
| | | string sql_save = "" + |
| | | "update b set " + |
| | | "b.HSetPosition_x = '" + HSetPosition_x + "' " + |
| | | ",b.HSetPosition_y = '" + HSetPosition_y +"' " + |
| | | "b.HSetPosition_x = " + HSetPosition_x + " " + |
| | | ",b.HSetPosition_y = " + HSetPosition_y +" " + |
| | | "from Gy_PNLInfo as a " + |
| | | "inner join Gy_PNLInfoSub as b on a.HInterID = b.HInterID " + |
| | | "where a.HLayOutName = '" + HLayOutName + "' " + |
| | |
| | | { |
| | | VRSOuter_getSetBarCodePosition_RequestResult_data data = new VRSOuter_getSetBarCodePosition_RequestResult_data(); |
| | | data.HBarCode_Set = HBarCode_Set; |
| | | data.HPosition_x = DBUtility.ClsPub.isStrNull(ds.Tables[0].Rows[i]["HSetPosition_x"]); |
| | | data.HPosition_y = DBUtility.ClsPub.isStrNull(ds.Tables[0].Rows[i]["HSetPosition_y"]); |
| | | data.HPosition_x = DBUtility.ClsPub.isDoule(ds.Tables[0].Rows[i]["HSetPosition_x"]); |
| | | data.HPosition_y = DBUtility.ClsPub.isDoule(ds.Tables[0].Rows[i]["HSetPosition_y"]); |
| | | dataList.Add(data); |
| | | } |
| | | |
| | |
| | | try |
| | | { |
| | | string sql = "" + |
| | | //"select * from QC_CheckNote_PNL_His where HBarCode = '" + HBarCode + "' " + |
| | | "select distinct * from (" + |
| | | //"select HBarCode,HPCSNo from QC_CheckNote_PNL_His where HBarCode = '" + HBarCode + "' " + |
| | | //"union " + |
| | | "select * from QC_CheckNote_PNL_Temp where HBarCode = '" + HBarCode + "'"; |
| | | "select HBarCode,HPCSNo from QC_CheckNote_PNL_Temp where HBarCode = '" + HBarCode + "' " + |
| | | ") as a"; |
| | | ds = oCN.RunProcReturn(sql, "QC_CheckNote_PNL_Temp"); |
| | | for(int i = 0; i < ds.Tables[0].Rows.Count; i++) |
| | | { |
| | | VRSOuter_getDataMapping_RequestResult_data data = new VRSOuter_getDataMapping_RequestResult_data(); |
| | | data.HBarCode = DBUtility.ClsPub.isStrNull(ds.Tables[0].Rows[i]["HBarCode"]); |
| | | data.HPCSNo = DBUtility.ClsPub.isStrNull(ds.Tables[0].Rows[i]["HPCSNo"]); |
| | | data.HPosition_x = DBUtility.ClsPub.isInt(ds.Tables[0].Rows[i]["HPosition_x"]); |
| | | data.HPosition_y = DBUtility.ClsPub.isInt(ds.Tables[0].Rows[i]["HPosition_y"]); |
| | | //data.HPosition_x = DBUtility.ClsPub.isInt(ds.Tables[0].Rows[i]["HPosition_x"]); |
| | | //data.HPosition_y = DBUtility.ClsPub.isInt(ds.Tables[0].Rows[i]["HPosition_y"]); |
| | | dataList.Add(data); |
| | | } |
| | | |
| | |
| | | List<AVI_getDataMapping_RequestResult_data> dataList = new List<AVI_getDataMapping_RequestResult_data>(); |
| | | try |
| | | { |
| | | string sql = "" + |
| | | //"select * from QC_CheckNote_PNL_His where HBarCode = '" + HBarCode + "' " + |
| | | //æ ¹æ®setæ¡ç ç¼å·ï¼è·åsetæå±çPNLæ¡ç ç¼å· |
| | | string HBarCode_PNL = ""; |
| | | string sql_PNLBarCode = "" + |
| | | //"select * from Gy_BarCodeBill_Set_His where HBarCode = '" + HBarCode + "' " + |
| | | //"union " + |
| | | "select * from QC_CheckNote_PNL_Temp where HBarCode = '" + HBarCode + "'"; |
| | | "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) |
| | | { |
| | | HBarCode_PNL = DBUtility.ClsPub.isStrNull(ds.Tables[0].Rows[0]["HBarCode_PNL"]); |
| | | } |
| | | else |
| | | { |
| | | result.code = "0"; |
| | | result.msg = "mappingä¿¡æ¯è·å失败ï¼ï¼setæ¡ç ä¸åå¨ï¼ï¼"; |
| | | result.data = null; |
| | | return result; |
| | | } |
| | | |
| | | //æ ¹æ®setæ¡ç ç¼å·ï¼è·åsetå·ãï¼setæ¡ç ç¼å·è§åï¼y+ww+äºä½PNLæµæ°´å·+两ä½setå·ï¼ |
| | | string HSetNo = HBarCode.Substring(HBarCode.Length - 2, 2); |
| | | |
| | | //æ ¹æ®PNLæ¡ç ç¼å·ãsetå·ï¼ä»PNLæ£éªä¿¡æ¯è¡¨ä¸è·åset对åºçæ£éªä¿¡æ¯ |
| | | string sql = "" + |
| | | "select distinct * from (" + |
| | | //"select HBarCode,HPCSNo from QC_CheckNote_PNL_His where HBarCode = '" + HBarCode_PNL + "' and HSetNo = '" + HSetNo + "' " + |
| | | //"union " + |
| | | "select HBarCode,HPCSNo from QC_CheckNote_PNL_Temp where HBarCode = '" + HBarCode_PNL + "' and HSetNo = '" + HSetNo + "' " + |
| | | ") as a"; |
| | | ds = oCN.RunProcReturn(sql, "QC_CheckNote_PNL_Temp"); |
| | | |
| | | for (int i = 0; i < ds.Tables[0].Rows.Count; i++) |
| | | { |
| | | AVI_getDataMapping_RequestResult_data data = new AVI_getDataMapping_RequestResult_data(); |
| | | data.HBarCode = DBUtility.ClsPub.isStrNull(ds.Tables[0].Rows[i]["HBarCode"]); |
| | | data.HPCSNo = DBUtility.ClsPub.isStrNull(ds.Tables[0].Rows[i]["HPCSNo"]); |
| | | data.HPosition_x = DBUtility.ClsPub.isInt(ds.Tables[0].Rows[i]["HPosition_x"]); |
| | | data.HPosition_y = DBUtility.ClsPub.isInt(ds.Tables[0].Rows[i]["HPosition_y"]); |
| | | //data.HPosition_x = DBUtility.ClsPub.isInt(ds.Tables[0].Rows[i]["HPosition_x"]); |
| | | //data.HPosition_y = DBUtility.ClsPub.isInt(ds.Tables[0].Rows[i]["HPosition_y"]); |
| | | dataList.Add(data); |
| | | } |
| | | |
| | |
| | | { |
| | | HBarCode_PNL = DBUtility.ClsPub.isStrNull(ds.Tables[0].Rows[0]["HBarCode_PNL"]); |
| | | } |
| | | else |
| | | { |
| | | result.code = "0"; |
| | | result.msg = "mappingä¿¡æ¯è·å失败ï¼ï¼setæ¡ç ä¸åå¨ï¼ï¼"; |
| | | result.data = null; |
| | | return result; |
| | | } |
| | | |
| | | //æ ¹æ®setæ¡ç ç¼å·ï¼è·åsetå·ãï¼setæ¡ç ç¼å·è§åï¼y+ww+äºä½PNLæµæ°´å·+两ä½setå·ï¼ |
| | | string HSetNo = HBarCode.Substring(HBarCode.Length-2,2); |
| | | |
| | | //æ ¹æ®PNLæ¡ç ç¼å·ãsetå·ï¼ä»PNLæ£éªä¿¡æ¯è¡¨ä¸è·åset对åºçæ£éªä¿¡æ¯ |
| | | string sql = "" + |
| | | //"select * from QC_CheckNote_PNL_His where HBarCode = '" + HBarCode_PNL + "' and HSetNo = '" + HSetNo + "' " + |
| | | "select distinct * from (" + |
| | | //"select HBarCode,HPCSNo from QC_CheckNote_PNL_His where HBarCode = '" + HBarCode_PNL + "' and HSetNo = '" + HSetNo + "' " + |
| | | //"union " + |
| | | "select * from QC_CheckNote_PNL_Temp where HBarCode = '" + HBarCode_PNL + "' and HSetNo = '" + HSetNo + "' "; |
| | | "select HBarCode,HPCSNo from QC_CheckNote_PNL_Temp where HBarCode = '" + HBarCode_PNL + "' and HSetNo = '" + HSetNo + "' " + |
| | | ") as a"; |
| | | ds = oCN.RunProcReturn(sql, "QC_CheckNote_PNL_Temp"); |
| | | |
| | | for (int i = 0; i < ds.Tables[0].Rows.Count; i++) |
| | | { |
| | | DC_getDataMapping_RequestResult_data data = new DC_getDataMapping_RequestResult_data(); |
| | | data.HBarCode = DBUtility.ClsPub.isStrNull(ds.Tables[0].Rows[i]["HBarCode"]); |
| | | data.HPCSNo = DBUtility.ClsPub.isStrNull(ds.Tables[0].Rows[i]["HPCSNo"]); |
| | | data.HPosition_x = DBUtility.ClsPub.isInt(ds.Tables[0].Rows[i]["HPosition_x"]); |
| | | data.HPosition_y = DBUtility.ClsPub.isInt(ds.Tables[0].Rows[i]["HPosition_y"]); |
| | | //data.HPosition_x = DBUtility.ClsPub.isInt(ds.Tables[0].Rows[i]["HPosition_x"]); |
| | | //data.HPosition_y = DBUtility.ClsPub.isInt(ds.Tables[0].Rows[i]["HPosition_y"]); |
| | | dataList.Add(data); |
| | | } |
| | | |
| | |
| | | { |
| | | HBarCode_PNL = DBUtility.ClsPub.isStrNull(ds.Tables[0].Rows[0]["HBarCode_PNL"]); |
| | | } |
| | | else |
| | | { |
| | | result.code = "0"; |
| | | result.msg = "mappingä¿¡æ¯è·å失败ï¼ï¼setæ¡ç ä¸åå¨ï¼ï¼"; |
| | | result.data = null; |
| | | return result; |
| | | } |
| | | |
| | | //æ ¹æ®setæ¡ç ç¼å·ï¼è·åsetå·ãï¼setæ¡ç ç¼å·è§åï¼y+ww+äºä½PNLæµæ°´å·+两ä½setå·ï¼ |
| | | string HSetNo = HBarCode.Substring(HBarCode.Length - 2, 2); |
| | | |
| | | //æ ¹æ®PNLæ¡ç ç¼å·ãsetå·ï¼ä»PNLæ£éªä¿¡æ¯è¡¨ä¸è·åset对åºçæ£éªä¿¡æ¯ |
| | | string sql = "" + |
| | | //"select * from QC_CheckNote_PNL_His where HBarCode = '" + HBarCode_PNL + "' and HSetNo = '" + HSetNo + "' " + |
| | | "select distinct * from (" + |
| | | //"select HBarCode,HPCSNo from QC_CheckNote_PNL_His where HBarCode = '" + HBarCode_PNL + "' and HSetNo = '" + HSetNo + "' " + |
| | | //"union " + |
| | | "select * from QC_CheckNote_PNL_Temp where HBarCode = '" + HBarCode_PNL + "' and HSetNo = '" + HSetNo + "' "; |
| | | "select HBarCode,HPCSNo from QC_CheckNote_PNL_Temp where HBarCode = '" + HBarCode_PNL + "' and HSetNo = '" + HSetNo + "' " + |
| | | ") as a"; |
| | | ds = oCN.RunProcReturn(sql, "QC_CheckNote_PNL_Temp"); |
| | | |
| | | for (int i = 0; i < ds.Tables[0].Rows.Count; i++) |
| | | { |
| | | JGG_getDataMapping_RequestResult_data data = new JGG_getDataMapping_RequestResult_data(); |
| | | data.HBarCode = DBUtility.ClsPub.isStrNull(ds.Tables[0].Rows[i]["HBarCode"]); |
| | | data.HPCSNo = DBUtility.ClsPub.isStrNull(ds.Tables[0].Rows[i]["HPCSNo"]); |
| | | data.HPosition_x = DBUtility.ClsPub.isInt(ds.Tables[0].Rows[i]["HPosition_x"]); |
| | | data.HPosition_y = DBUtility.ClsPub.isInt(ds.Tables[0].Rows[i]["HPosition_y"]); |
| | | //data.HPosition_x = DBUtility.ClsPub.isInt(ds.Tables[0].Rows[i]["HPosition_x"]); |
| | | //data.HPosition_y = DBUtility.ClsPub.isInt(ds.Tables[0].Rows[i]["HPosition_y"]); |
| | | dataList.Add(data); |
| | | } |
| | | |