private void button22_Click(object sender, EventArgs e) { string strErrMsg = ""; localhost.UserInfo userInfo = new localhost.UserInfo(); userInfo.UserNo = "admin"; localWebTest.UserLogin(ref userInfo, ref strErrMsg); string strUserJson = BLL.JSONUtil.JSONHelper.ObjectToJson <localhost.UserInfo>(userInfo); string strDetailJson = localWebTest.GetProductTransTaskInfo(strUserJson, "16042651015"); BLL.Task.TaskHead_Model taskHead = BLL.JSONUtil.JSONHelper.JsonToObject <BLL.Task.TaskHead_Model>(strDetailJson); taskHead.lstTaskInfo[0].lstTaskDetails[0].ScanQty = 1; taskHead.lstTaskInfo[0].lstTaskDetails[0].lstSerial = new List <BLL.Task.TaskSerial_Model>(); BLL.Task.TaskSerial_Model BM = new BLL.Task.TaskSerial_Model(); BM.SerialNo = "16042651015"; taskHead.lstTaskInfo[0].lstTaskDetails[0].lstSerial.Add(BM); strDetailJson = BLL.JSONUtil.JSONHelper.ObjectToJson <BLL.Task.TaskHead_Model>(taskHead); //string strDetailJson = \"\"; //strDetailJson = \"{\\"Status\\":\\"S\\",\\"lstTaskInfo\\":[{\\"lstTaskDetails\\":[{\\"VoucherNo\\":\\"4700291163\\",\\"MaterialDesc\\":\\"DB15,直针焊板带螺母(三排)\\",\\"MaterialNo\\":\\"102001 - 000055 - 00\\",\\"ToAreaNo\\":\\"C1A060401\\",\\"RowNo\\":\\"00020\\",\\"ReviewQty\\":0,\\"RemainQty\\":20,\\"ScanPackCount\\":0,\\"ScanQty\\":0,\\"ShelvePackCount\\":0,\\"ShelveQty\\":0,\\"Status\\":0,\\"RemainPackCount\\":2,\\"QuanlityQty\\":20,\\"PackCount\\":2,\\"TaskQty\\":20,\\"Task_ID\\":0,\\"OutStockQty\\":0,\\"UnQuanlityQty\\":0,\\"IsROHS\\":0,\\"IsQualityComp\\":0,\\"ID\\":379,\\"DeliveryQty\\":0},{\\"lstSerial\\":[{\\"SerialNo\\":\\"201507260594\\"}],\\"VoucherNo\\":\\"4700291163\\",\\"MaterialDesc\\":\\"DB9,90°弯孔插座(478168)\\",\\"MaterialNo\\":\\"102001 - 000001 - 00\\",\\"ToAreaNo\\":\\"\\",\\"RowNo\\":\\"00010\\",\\"ReviewQty\\":0,\\"RemainQty\\":80,\\"ScanPackCount\\":1,\\"ScanQty\\":10,\\"ShelvePackCount\\":0,\\"ShelveQty\\":0,\\"Status\\":0,\\"RemainPackCount\\":10,\\"QuanlityQty\\":80,\\"PackCount\\":10,\\"TaskQty\\":100,\\"Task_ID\\":0,\\"OutStockQty\\":0,\\"UnQuanlityQty\\":0,\\"IsROHS\\":0,\\"IsQualityComp\\":0,\\"ID\\":380,\\"DeliveryQty\\":0},{\\"VoucherNo\\":\\"4700291163\\",\\"MaterialDesc\\":\\"DB15,直针焊板带螺母(三排)\\",\\"MaterialNo\\":\\"102001 - 000055 - 00\\",\\"ToAreaNo\\":\\"C1A060401\\",\\"RowNo\\":\\"00030\\",\\"ReviewQty\\":0,\\"RemainQty\\":0,\\"ScanPackCount\\":0,\\"ScanQty\\":0,\\"ShelvePackCount\\":0,\\"ShelveQty\\":0,\\"Status\\":0,\\"RemainPackCount\\":0,\\"QuanlityQty\\":0,\\"PackCount\\":0,\\"TaskQty\\":0,\\"Task_ID\\":0,\\"OutStockQty\\":0,\\"UnQuanlityQty\\":0,\\"IsROHS\\":0,\\"IsQualityComp\\":0,\\"ID\\":381,\\"DeliveryQty\\":0}],\\"TaskNo\\":\\"201507290259\\",\\"Receive_ID\\":0,\\"IsShelvePost\\":2,\\"IsReceivePost\\":0,\\"TaskStatus\\":2,\\"TaskType\\":0,\\"IsQuality\\":2,\\"VoucherType\\":10,\\"IsPost\\":0,\\"ID\\":209}]}\"; strDetailJson = localWebTest.InStock(strDetailJson, strUserJson, "13-C4-0-01"); MessageBox.Show(strDetailJson); MessageBox.Show("ad"); }
private void button17_Click(object sender, EventArgs e) { //string strErrMsg = ""; //localhost.UserInfo userInfo = new localhost.UserInfo(); //userInfo.UserNo = "admin"; //userInfo.Password = "******"; //userInfo.LoginIP = "PC"; //localWebTest.UserLogin(ref userInfo, ref strErrMsg); ////string strUserJson = \"{\\"UserNo\\":\\"A001\\",\\"UserName\\":\\"袁德虎\\",\\"Password\\":\\"123456\\",\\"UserType\\":1,\\"PinYin\\":\\"A001\\",\\"Duty\\":\\"\\",\\"Tel\\":\\"\\",\\"Mobile\\":\\"\\",\\"Email\\":\\"\\",\\"Sex\\":\\"男\\",\\"IsPick\\":1,\\"IsReceive\\":1,\\"IsQuality\\":1,\\"UserStatus\\":1,\\"Address\\":\\"1\\",\\"GroupCode\\":\\"\\",\\"WarehouseCode\\":\\"1,2\\",\\"Description\\":\\"\\",\\"LoginIP\\":\\"\\",\\"LoginTime\\":null,\\"Status\\":\\"S\\",\\"Type\\":null,\\"Dghead\\":{\\"SupName\\":null,\\"SupCode\\":\\"600212\\"},\\"Message\\":null,\\"RePassword\\":\\"123456\\",\\"BIsAdmin\\":false,\\"GroupName\\":null,\\"WarehouseNo\\":null,\\"WarehouseName\\":null,\\"StrUserType\\":null,\\"BIsPick\\":false,\\"BIsReceive\\":false,\\"BIsQuality\\":false,\\"lstUserGroup\\":null,\\"lstMenu\\":null,\\"lstWarehouse\\":[{\\"WarehouseNo\\":\\"A1\\",\\"WarehouseName\\":\\"北区B栋1楼天馈原材料仓\\",\\"WarehouseType\\":1,\\"ContactUser\\":\\"\\",\\"ContactPhone\\":\\"\\",\\"HouseCount\\":14,\\"HouseUsingCount\\":0,\\"LocationDesc\\":\\"\\",\\"WarehouseStatus\\":1,\\"Address\\":\\"\\",\\"Status\\":null,\\"Type\\":null,\\"Dghead\\":{\\"SupName\\":null,\\"SupCode\\":null},\\"Message\\":null,\\"HouseNo\\":null,\\"HouseName\\":null,\\"BIsLock\\":false,\\"StrWarehouseStatus\\":null,\\"BIsChecked\\":false,\\"ID\\":1,\\"No\\":null,\\"Name\\":null,\\"IsDel\\":1,\\"Creater\\":\\"admin\\",\\"CreateTime\\":\\"\\",\\"Modifyer\\":\\"\\",\\"ModifyTime\\":null,\\"StrCreateTime\\":null,\\"StrModifyTime\\":null},{\\"WarehouseNo\\":\\"B1\\",\\"WarehouseName\\":\\"北区B栋1楼公共材料仓\\",\\"WarehouseType\\":1,\\"ContactUser\\":\\"\\",\\"ContactPhone\\":\\"\\",\\"HouseCount\\":22,\\"HouseUsingCount\\":0,\\"LocationDesc\\":\\"\\",\\"WarehouseStatus\\":1,\\"Address\\":\\"\\",\\"Status\\":null,\\"Type\\":null,\\"Dghead\\":{\\"SupName\\":null,\\"SupCode\\":null},\\"Message\\":null,\\"HouseNo\\":null,\\"HouseName\\":null,\\"BIsLock\\":false,\\"StrWarehouseStatus\\":null,\\"BIsChecked\\":false,\\"ID\\":2,\\"No\\":null,\\"Name\\":null,\\"IsDel\\":1,\\"Creater\\":\\"admin\\",\\"CreateTime\\":\\"\\",\\"Modifyer\\":\\"\\",\\"ModifyTime\\":null,\\"StrCreateTime\\":null,\\"StrModifyTime\\":null}],\\"ID\\":2,\\"No\\":null,\\"Name\\":null,\\"IsDel\\":1,\\"Creater\\":\\"admin\\",\\"CreateTime\\":\\"\\",\\"Modifyer\\":\\"\\",\\"ModifyTime\\":null,\\"StrCreateTime\\":null,\\"StrModifyTime\\":null}\";//JXBLL.JSONUtil.JSONHelper.ObjectToJson<localhost.UserInfo>(userInfo); ////string strUserJson = \"{\\"Address\\":\\"1\\",\\"lstWarehouse\\":[{\\"Address\\":\\"\\",\\"WarehouseNo\\":\\"A1\\",\\"WarehouseName\\":\\"北区B栋1楼天馈原材料仓\\",\\"ContactPhone\\":\\"\\",\\"ContactUser\\":\\"\\",\\"Creater\\":\\"admin\\",\\"Dghead\\":{},\\"LocationDesc\\":\\"\\",\\"Modifyer\\":\\"\\",\\"IsDel\\":1,\\"ID\\":1,\\"HouseUsingCount\\":0,\\"HouseCount\\":14,\\"BIsLock\\":false,\\"BIsChecked\\":false,\\"WarehouseStatus\\":1,\\"WarehouseType\\":1},{\\"Address\\":\\"\\",\\"WarehouseNo\\":\\"B1\\",\\"WarehouseName\\":\\"北区B栋1楼公共材料仓\\",\\"ContactPhone\\":\\"\\",\\"ContactUser\\":\\"\\",\\"Creater\\":\\"admin\\",\\"Dghead\\":{},\\"LocationDesc\\":\\"\\",\\"Modifyer\\":\\"\\",\\"IsDel\\":1,\\"ID\\":2,\\"HouseUsingCount\\":0,\\"HouseCount\\":22,\\"BIsLock\\":false,\\"BIsChecked\\":false,\\"WarehouseStatus\\":1,\\"WarehouseType\\":1}],\\"WarehouseCode\\":\\"1,2\\",\\"UserNo\\":\\"A001\\",\\"UserName\\":\\"袁德虎\\",\\"Creater\\":\\"admin\\",\\"Description\\":\\"\\",\\"Dghead\\":{\\"SupCode\\":\\"600212\\"},\\"Duty\\":\\"\\",\\"Email\\":\\"\\",\\"GroupCode\\":\\"\\",\\"Tel\\":\\"\\",\\"Status\\":\\"S\\",\\"LoginIP\\":\\"\\",\\"Mobile\\":\\"\\",\\"Modifyer\\":\\"\\",\\"Password\\":\\"29F658DE7880317A\\",\\"PinYin\\":\\"A001\\",\\"RePassword\\":\\"29F658DE7880317A\\",\\"Sex\\":\\"男\\",\\"ShowCalender\\":0,\\"IsReceive\\":1,\\"IsQuality\\":2,\\"IsPick\\":1,\\"IsDel\\":1,\\"IsAdmin\\":false,\\"ID\\":2,\\"BIsReceive\\":false,\\"BIsQuality\\":true,\\"UserStatus\\":1,\\"UserType\\":1,\\"BIsPick\\":false,\\"bIsPick\\":false,\\"bIsQuanlity\\":false,\\"BIsAdmin\\":false}\\"; //string strUserJson = JXBLL.JSONUtil.JSONHelper.ObjectToJson<localhost.UserInfo>(userInfo); //string strJson = localWebTest.GetTaskInfo(strUserJson, "2015090300004"); //MessageBox.Show("ad"); string strErrMsg = ""; localhost.UserInfo userInfo = new localhost.UserInfo(); userInfo.UserNo = "admin"; userInfo.ID = 1; userInfo.Password = "******"; userInfo.LoginIP = "PC"; localWebTest.UserLogin(ref userInfo, ref strErrMsg); //string strUserJson = \"{\\"UserNo\\":\\"A001\\",\\"UserName\\":\\"袁德虎\\",\\"Password\\":\\"123456\\",\\"UserType\\":1,\\"PinYin\\":\\"A001\\",\\"Duty\\":\\"\\",\\"Tel\\":\\"\\",\\"Mobile\\":\\"\\",\\"Email\\":\\"\\",\\"Sex\\":\\"男\\",\\"IsPick\\":1,\\"IsReceive\\":1,\\"IsQuality\\":1,\\"UserStatus\\":1,\\"Address\\":\\"1\\",\\"GroupCode\\":\\"\\",\\"WarehouseCode\\":\\"1,2\\",\\"Description\\":\\"\\",\\"LoginIP\\":\\"\\",\\"LoginTime\\":null,\\"Status\\":\\"S\\",\\"Type\\":null,\\"Dghead\\":{\\"SupName\\":null,\\"SupCode\\":\\"600212\\"},\\"Message\\":null,\\"RePassword\\":\\"123456\\",\\"BIsAdmin\\":false,\\"GroupName\\":null,\\"WarehouseNo\\":null,\\"WarehouseName\\":null,\\"StrUserType\\":null,\\"BIsPick\\":false,\\"BIsReceive\\":false,\\"BIsQuality\\":false,\\"lstUserGroup\\":null,\\"lstMenu\\":null,\\"lstWarehouse\\":[{\\"WarehouseNo\\":\\"A1\\",\\"WarehouseName\\":\\"北区B栋1楼天馈原材料仓\\",\\"WarehouseType\\":1,\\"ContactUser\\":\\"\\",\\"ContactPhone\\":\\"\\",\\"HouseCount\\":14,\\"HouseUsingCount\\":0,\\"LocationDesc\\":\\"\\",\\"WarehouseStatus\\":1,\\"Address\\":\\"\\",\\"Status\\":null,\\"Type\\":null,\\"Dghead\\":{\\"SupName\\":null,\\"SupCode\\":null},\\"Message\\":null,\\"HouseNo\\":null,\\"HouseName\\":null,\\"BIsLock\\":false,\\"StrWarehouseStatus\\":null,\\"BIsChecked\\":false,\\"ID\\":1,\\"No\\":null,\\"Name\\":null,\\"IsDel\\":1,\\"Creater\\":\\"admin\\",\\"CreateTime\\":\\"\\",\\"Modifyer\\":\\"\\",\\"ModifyTime\\":null,\\"StrCreateTime\\":null,\\"StrModifyTime\\":null},{\\"WarehouseNo\\":\\"B1\\",\\"WarehouseName\\":\\"北区B栋1楼公共材料仓\\",\\"WarehouseType\\":1,\\"ContactUser\\":\\"\\",\\"ContactPhone\\":\\"\\",\\"HouseCount\\":22,\\"HouseUsingCount\\":0,\\"LocationDesc\\":\\"\\",\\"WarehouseStatus\\":1,\\"Address\\":\\"\\",\\"Status\\":null,\\"Type\\":null,\\"Dghead\\":{\\"SupName\\":null,\\"SupCode\\":null},\\"Message\\":null,\\"HouseNo\\":null,\\"HouseName\\":null,\\"BIsLock\\":false,\\"StrWarehouseStatus\\":null,\\"BIsChecked\\":false,\\"ID\\":2,\\"No\\":null,\\"Name\\":null,\\"IsDel\\":1,\\"Creater\\":\\"admin\\",\\"CreateTime\\":\\"\\",\\"Modifyer\\":\\"\\",\\"ModifyTime\\":null,\\"StrCreateTime\\":null,\\"StrModifyTime\\":null}],\\"ID\\":2,\\"No\\":null,\\"Name\\":null,\\"IsDel\\":1,\\"Creater\\":\\"admin\\",\\"CreateTime\\":\\"\\",\\"Modifyer\\":\\"\\",\\"ModifyTime\\":null,\\"StrCreateTime\\":null,\\"StrModifyTime\\":null}\";//JXBLL.JSONUtil.JSONHelper.ObjectToJson<localhost.UserInfo>(userInfo); //string strUserJson = \"{\\"Address\\":\\"1\\",\\"lstWarehouse\\":[{\\"Address\\":\\"\\",\\"WarehouseNo\\":\\"A1\\",\\"WarehouseName\\":\\"北区B栋1楼天馈原材料仓\\",\\"ContactPhone\\":\\"\\",\\"ContactUser\\":\\"\\",\\"Creater\\":\\"admin\\",\\"Dghead\\":{},\\"LocationDesc\\":\\"\\",\\"Modifyer\\":\\"\\",\\"IsDel\\":1,\\"ID\\":1,\\"HouseUsingCount\\":0,\\"HouseCount\\":14,\\"BIsLock\\":false,\\"BIsChecked\\":false,\\"WarehouseStatus\\":1,\\"WarehouseType\\":1},{\\"Address\\":\\"\\",\\"WarehouseNo\\":\\"B1\\",\\"WarehouseName\\":\\"北区B栋1楼公共材料仓\\",\\"ContactPhone\\":\\"\\",\\"ContactUser\\":\\"\\",\\"Creater\\":\\"admin\\",\\"Dghead\\":{},\\"LocationDesc\\":\\"\\",\\"Modifyer\\":\\"\\",\\"IsDel\\":1,\\"ID\\":2,\\"HouseUsingCount\\":0,\\"HouseCount\\":22,\\"BIsLock\\":false,\\"BIsChecked\\":false,\\"WarehouseStatus\\":1,\\"WarehouseType\\":1}],\\"WarehouseCode\\":\\"1,2\\",\\"UserNo\\":\\"A001\\",\\"UserName\\":\\"袁德虎\\",\\"Creater\\":\\"admin\\",\\"Description\\":\\"\\",\\"Dghead\\":{\\"SupCode\\":\\"600212\\"},\\"Duty\\":\\"\\",\\"Email\\":\\"\\",\\"GroupCode\\":\\"\\",\\"Tel\\":\\"\\",\\"Status\\":\\"S\\",\\"LoginIP\\":\\"\\",\\"Mobile\\":\\"\\",\\"Modifyer\\":\\"\\",\\"Password\\":\\"29F658DE7880317A\\",\\"PinYin\\":\\"A001\\",\\"RePassword\\":\\"29F658DE7880317A\\",\\"Sex\\":\\"男\\",\\"ShowCalender\\":0,\\"IsReceive\\":1,\\"IsQuality\\":2,\\"IsPick\\":1,\\"IsDel\\":1,\\"IsAdmin\\":false,\\"ID\\":2,\\"BIsReceive\\":false,\\"BIsQuality\\":true,\\"UserStatus\\":1,\\"UserType\\":1,\\"BIsPick\\":false,\\"bIsPick\\":false,\\"bIsQuanlity\\":false,\\"BIsAdmin\\":false}\\"; string strUserJson = BLL.JSONUtil.JSONHelper.ObjectToJson <localhost.UserInfo>(userInfo); string strJson = localWebTest.GetProductTransTaskInfo(strUserJson, "15112420010"); MessageBox.Show("ad"); }
private void button30_Click(object sender, EventArgs e) { string vouchcode, vouchtype, cwhcode, strTaskNo = "", strErrMsg = ""; vouchcode = "001321678"; vouchtype = "-10"; cwhcode = "13"; localhost.UserInfo userModel = new localhost.UserInfo(); userModel.UserNo = "demo1"; userModel.ID = 604; localWebTest.CreateShelveTaskTest(vouchcode, vouchtype, cwhcode, userModel, ref strTaskNo, ref strErrMsg); MessageBox.Show("ad"); }
private void button26_Click(object sender, EventArgs e) { string strErrMsg = ""; localhost.UserInfo userInfo = new localhost.UserInfo(); userInfo.UserNo = "admin"; userInfo.Password = "******"; localWebTest.UserLogin(ref userInfo, ref strErrMsg); string strUserJson = BLL.JSONUtil.JSONHelper.ObjectToJson <localhost.UserInfo>(userInfo); string strInStockJson = localWebTest.GetQulitiedTaskDetailsInfo("201509180473"); strInStockJson = localWebTest.UnLockTaskOperUser(strInStockJson, strUserJson); MessageBox.Show("ad"); }
private void button24_Click(object sender, EventArgs e) { string strErrMsg = ""; localhost.UserInfo userInfo = new localhost.UserInfo(); userInfo.UserNo = "admin"; localWebTest.UserLogin(ref userInfo, ref strErrMsg); string strUserJson = BLL.JSONUtil.JSONHelper.ObjectToJson <localhost.UserInfo>(userInfo); //string strJson = localWebTest.PostTaskInfoToSAP("385", "2101", strUserJson); //strJson = localWebTest.PostReceiveGoodsInfo(strJson, strUserJson); MessageBox.Show("ad"); }
private void button20_Click(object sender, EventArgs e) { string strErrMsg = ""; localhost.UserInfo userInfo = new localhost.UserInfo(); userInfo.UserNo = "A001"; localWebTest.UserLogin(ref userInfo, ref strErrMsg); string strUserJson = BLL.JSONUtil.JSONHelper.ObjectToJson <localhost.UserInfo>(userInfo); string strDetailJson = localWebTest.GetQulitiedTaskDetailsInfo("201507270251"); BLL.Task.TaskHead_Model taskHead = BLL.JSONUtil.JSONHelper.JsonToObject <BLL.Task.TaskHead_Model>(strDetailJson); strDetailJson = BLL.JSONUtil.JSONHelper.ObjectToJson <BLL.Task.TaskDetails_Model>(taskHead.lstTaskInfo[0].lstTaskDetails[0]); string strJson = localWebTest.LockTaskOperUser(strDetailJson, strUserJson); MessageBox.Show("ad"); }
private void button25_Click(object sender, EventArgs e) { string strErrMsg = ""; bool bSucc = false; localhost.UserInfo userInfo = new localhost.UserInfo(); userInfo.UserNo = "A001"; localWebTest.UserLogin(ref userInfo, ref strErrMsg); string strUserJson = BLL.JSONUtil.JSONHelper.ObjectToJson <localhost.UserInfo>(userInfo); string strJson = localWebTest.GetDeliveryInfoForAndroid("15080031554", strUserJson);//15050030527 localhost.DeliveryReceive_Model deliveryModel = BLL.JSONUtil.JSONHelper.JsonToObject <localhost.DeliveryReceive_Model>(strJson); deliveryModel.lstDeliveryDetail.ToList().ForEach(t => t.UnQualityQty = 2); strJson = BLL.JSONUtil.JSONHelper.ObjectToJson <localhost.DeliveryReceive_Model>(deliveryModel); //bSucc = localWebTest.PostReceiveUnQualityReturnToSAP(ref deliveryModel, userInfo, ref strErrMsg); MessageBox.Show("ad"); }
private void button13_Click(object sender, EventArgs e) { //web送货单 //webTest.Url = \"http://192.168.0.215:8080/JXWebService.asmx\"; //string strJson = webTest.GetDeliveryInfoForAndroid(\"15070031457\", string.Empty); //strJson = webTest.PostReceiveGoodsInfo(strJson, string.Empty); //MessageBox.Show(\"ad\"); //本地送货单 //string strErrMsg = \"\"; //localhost.UserInfo userInfo = new localhost.UserInfo(); //userInfo.UserNo = \"A003\"; //localWebTest.UserLogin(ref userInfo, ref strErrMsg); //string strUserJson = JXBLL.JSONUtil.JSONHelper.ObjectToJson<localhost.UserInfo>(userInfo); //string strJson = localWebTest.GetDeliveryInfoForAndroid(\"15080031535\", strUserJson);//15050030527 //localhost.DeliveryReceive_Model deliveryModel = JXBLL.JSONUtil.JSONHelper.JsonToObject<localhost.DeliveryReceive_Model>(strJson); //deliveryModel.IsQuality = 2; //deliveryModel.lstDeliveryDetail.ToList().ForEach(t => t.ReceiveQty = 10); //strJson = JXBLL.JSONUtil.JSONHelper.ObjectToJson<localhost.DeliveryReceive_Model>(deliveryModel); //strJson = localWebTest.PostReceiveGoodsInfo(strJson, strUserJson); //MessageBox.Show(\"ad\"); //web生产退料 //webTest.Url = \"http://192.168.0.215:8080/JXWebService.asmx\"; //string strJson = webTest.GetProductionReturnInfoForSAP(\"TEST150701\"); //strJson = webTest.PostReceiveGoodsInfo(strJson, string.Empty); //MessageBox.Show(\"ad\"); //本能生产退料过账 //localWebTest.Url = \"http://localhost:4765/JXWebService.asmx\"; //string strErrMsg = \"\"; //localhost.UserInfo userInfo = new localhost.UserInfo(); //userInfo.UserNo = \"A001\"; //localWebTest.UserLogin(ref userInfo, ref strErrMsg); //string strUserJson = JXBLL.JSONUtil.JSONHelper.ObjectToJson<localhost.UserInfo>(userInfo); //string strJson = localWebTest.GetProductionReturnInfoForSAP(\"TEST081601\"); //strJson = localWebTest.PostReceiveGoodsInfo(strJson, strUserJson); //MessageBox.Show(\"ad\"); //web生产订单 //webTest.Url = \"http://192.168.0.215:8080/JXWebService.asmx\"; //string strJson = webTest.GetProductionInfoForSAP(\"000100157483\"); //strJson = webTest.PostReceiveGoodsInfo(strJson, string.Empty); //MessageBox.Show(\"ad\"); //webTest.Url = \"http://192.168.0.215:8080/JXWebService.asmx\"; string strErrMsg = ""; localhost.UserInfo userInfo = new localhost.UserInfo(); userInfo.UserNo = "A001"; userInfo.Password = "******"; userInfo.LoginIP = "PC"; localWebTest.UserLogin(ref userInfo, ref strErrMsg); string strUserJson = BLL.JSONUtil.JSONHelper.ObjectToJson <localhost.UserInfo>(userInfo); //string strJson = localWebTest.GetProductionInfoForSAP("400006173"); //localhost.DeliveryReceive_Model deliveryModel = JXBLL.JSONUtil.JSONHelper.JsonToObject<localhost.DeliveryReceive_Model>(strJson); //deliveryModel.lstDeliveryDetail.ToList().ForEach(t => t.ReceiveQty = 10); //strJson = JXBLL.JSONUtil.JSONHelper.ObjectToJson<localhost.DeliveryReceive_Model>(deliveryModel); //strJson = localWebTest.PostReceiveGoodsInfo(strJson, strUserJson); MessageBox.Show("ad"); }