Exemple #1
0
        private void button16_Click(object sender, EventArgs e)
        {
            string strErrMsg = "";

            localhost.DeliveryReceive_Model deliveryModel = new localhost.DeliveryReceive_Model();
            //bool bSucc= localWebTest.GetPOInfoForSAP("4700291163", ref deliveryModel, ref strErrMsg);
            MessageBox.Show("ad");
        }
Exemple #2
0
        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");
        }