1
yangle
2025-02-13 3e2600eadb6054f9d9aef8f586f4244021b35045
1
8个文件已修改
4个文件已添加
2770 ■■■■ 已修改文件
DAL/DAL.csproj 1 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
DAL/计划管理/ClsGy_SourceMouldBillMain.cs 271 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
Model/Model.csproj 2 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
Model/计划管理/ClsGy_SourceMouldBillMain.cs 17 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
Model/计划管理/ClsGy_SourceMouldBillSub.cs 14 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
WebAPI/Controllers/JHGL/Gy_SourceMouldBillController.cs 648 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
WebAPI/Controllers/条码管理/WEBSController.cs 128 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
WebAPI/ListModels.cs 24 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
WebAPI/Web References/WebS/Reference.cs 1152 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
WebAPI/Web References/WebS/WebService1.wsdl 510 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
WebAPI/Web.config 2 ●●● 补丁 | 查看 | 原始文档 | blame | 历史
WebAPI/WebAPI.csproj 1 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
DAL/DAL.csproj
@@ -95,6 +95,7 @@
    <Compile Include="源单\InterFace源单\Cls_S_IF_ICMOBillList_CusBarCodeBill.cs" />
    <Compile Include="源单\InterFace源单\Cls_S_IF_ICMOReportBillList_CusBarCodeBill.cs" />
    <Compile Include="系统公用\ClsXt_DefineBillMainSet.cs" />
    <Compile Include="计划管理\ClsGy_SourceMouldBillMain.cs" />
    <Compile Include="质检管理\ClsQC_EnvironmentTestDotCheckBillMain.cs" />
    <Compile Include="质检管理\ClsQC_MonthTarGetBill.cs" />
    <Compile Include="生产管理\设备管理\ClsSb_EquipRepairSignBill.cs" />
DAL/¼Æ»®¹ÜÀí/ClsGy_SourceMouldBillMain.cs
New file
@@ -0,0 +1,271 @@
using System;
using System.Collections.Generic;
using System.Text;
using System.Data;
namespace DAL
{
    public class ClsGy_SourceMouldBillMain : DBUtility.ClsXt_BaseBill
    {
        public Model.ClsGy_SourceMouldBillMain omodel = new Model.ClsGy_SourceMouldBillMain();
        public List<Model.ClsGy_SourceMouldBillSub> DetailColl = new List<Model.ClsGy_SourceMouldBillSub>();
        public ClsGy_SourceMouldBillMain()
        {
            base.MvarItemKeySub = "Gy_SourceMouldBillSub";
            base.MvarItemKeySub2 = "";
            base.MvarItemKeySub3 = "";
            base.MvarItemKeySub4 = "";
            base.MvarItemKey = "Gy_SourceMouldBillMain";
            base.MvarReportTitle = "产线器具清单";
            base.BillType = "4617";
            base.HBillSubType = "4617";
        }
        #region å›ºå®šä»£ç 
        #region æ— å‚构造函数
        ~ClsGy_SourceMouldBillMain()
        {
            DetailColl = null;
        }
        #endregion
        #endregion
        //#region ä¿®æ”¹å•据
        public override bool ModifyBill(Int64 lngBillKey, ref string sReturn)
        {
            try
            {
                oCn.BeginTran();
                //更新主表
                string mainSql = "update Gy_SourceMouldBillMain set " +
                    " HBillNo = '" + omodel.HBillNo +
                    "', HDate = '" + omodel.HDate +
                    "', HRemark = '" + omodel.HRemark +
                    "', HUpDater = '" + omodel.HUpDater +
                    "', HUpDateDate = getdate()" +
                     //===============================================================
                     ", HDeptID = '" + omodel.HDeptID +
                    "', HEmpID = '" + omodel.HEmpID +
                    "', HSourceID = '" + omodel.HSourceID +
                    "', HWorkCenterID = '" + omodel.HWorkCenterID +
                    "', HEquipID  = '" + omodel.HEquipID +
                    "', HOrgID      = '" + omodel.HOrgID +
                    "', HProcID      = " + omodel.HProcID +
                    " where HInterID = " + omodel.HInterID;
                oCn.RunProc(mainSql);
                //删除关联
                DeleteRelation(ref sReturn, lngBillKey);
                //删除子表
                DeleteBillSub(lngBillKey);
                //插入子表
                omodel.HInterID = lngBillKey;
                foreach (Model.ClsGy_SourceMouldBillSub oSub in DetailColl)
                {
                    string subSql = "insert into Gy_SourceMouldBillSub" +
                            "(HInterID,HEntryID,HSourceInterID,HSourceEntryID,HSourceBillNo,HSourceBillType" +
                            ",HMouldID,HQty,HMouldQty,HRate) " +
                            " values(" +
                            "" + omodel.HInterID.ToString() +
                            "," + oSub.HEntryID.ToString() +
                            "," + oSub.HSourceInterID +
                            "," + oSub.HSourceEntryID +
                            ",'" + oSub.HSourceBillNo +
                            "','" + oSub.HSourceBillType +
                            "','" + oSub.HMouldID +
                            "'," + oSub.HQty +
                            "," + oSub.HMouldQty +
                            ",'" + oSub.HRate +
                            "')";
                    oCn.RunProc(subSql);
                }
                sReturn = "修改单据成功!";
                oCn.Commit();
                return true;
            }
            catch (Exception e)
            {
                sReturn = e.Message;
                oCn.RollBack();
                throw (e);
            }
        }
        //#endregion
        #region  æ–°å¢žå•据
        public override bool AddBill(ref string sReturn)
        {
            try
            {
                DataSet ds;
                oCn.BeginTran();
                //检查主表内码是否重复,若重复则重新生成并继续检查,直到不再重复
                while (true)
                {
                    ds = oCn.RunProcReturn("select * from Gy_SourceMouldBillMain where HInterID = " + omodel.HInterID, "Gy_SourceMouldBillMain");
                    if (ds != null && ds.Tables[0].Rows.Count > 0)
                    {
                        omodel.HInterID = DBUtility.ClsPub.CreateBillID(BillType, ref DBUtility.ClsPub.sExeReturnInfo);
                    }
                    else
                    {
                        break;
                    }
                }
                //插入主表
                string mainSql = "insert into Gy_SourceMouldBillMain" +
                    "(HYear,HPeriod,HBillType,HBillSubType,HInterID,HDate,HBillNo,HRemark,HMaker,HMakeDate" +
                    ",HDeptID,HEmpID,HSourceID,HWorkCenterID,HEquipID,HOrgID,HProcID) " +
                    "values(" +
                    "" + omodel.HYear.ToString() +
                    "," + omodel.HPeriod.ToString() +
                    ",'" + this.BillType +
                    "','" + this.HBillSubType +
                    "'," + omodel.HInterID +
                    ",'" + omodel.HDate +
                    "','" + omodel.HBillNo +
                    "','" + omodel.HRemark +
                    "','" + omodel.HMaker +
                    "',getdate()" +
                    "," + omodel.HDeptID +
                    "," + omodel.HEmpID +
                    ",'" + omodel.HSourceID +
                    "','" + omodel.HWorkCenterID +
                    "','" + omodel.HEquipID +
                    "','" + omodel.HOrgID +
                    "'," + omodel.HProcID +
                    ")";
                oCn.RunProc(mainSql);
                //插入子表
                foreach (Model.ClsGy_SourceMouldBillSub oSub in DetailColl)
                {
                    string subSql = "insert into Gy_SourceMouldBillSub" +
                           "" +
                           "" +
                           "" +
                           "(HInterID,HEntryID,HSourceInterID,HSourceEntryID,HSourceBillNo,HSourceBillType" +
                           ",HMouldID,HQty,HMouldQty,HRate) " +
                           " values(" +
                           "" + omodel.HInterID.ToString() +
                           "," + oSub.HEntryID.ToString() +
                           "," + oSub.HSourceInterID +
                           "," + oSub.HSourceEntryID +
                           ",'" + oSub.HSourceBillNo +
                           "','" + oSub.HSourceBillType +
                           "','" + oSub.HMouldID +
                           "'," + oSub.HQty +
                           "," + oSub.HMouldQty +
                           ",'" + oSub.HRate +
                           "')";
                    oCn.RunProc(subSql);
                }
                sReturn = "新增单据成功!";
                oCn.Commit();
                return true;
            }
            catch (Exception e)
            {
                sReturn = e.Message;
                oCn.RollBack();
                throw (e);
            }
        }
        #endregion
        #region æ˜¾ç¤ºå•据
        public override bool ShowBill(Int64 lngBillKey, ref string sReturn)
        {
            try
            {
                //查询主表
                DataSet Ds;
                Ds = oCn.RunProcReturn("select * from Gy_SourceMouldBillMain Where HInterID = " + lngBillKey.ToString(), "Gy_SourceMouldBillMain");
                if (Ds.Tables[0].Rows.Count == 0)
                {
                    sReturn = "单据未找到!";
                    return false;
                }
                //固定赋值===========================================
                omodel.HYear = DBUtility.ClsPub.isLong(Ds.Tables[0].Rows[0]["HYear"]);
                omodel.HPeriod = DBUtility.ClsPub.isLong(Ds.Tables[0].Rows[0]["HPeriod"]);
                omodel.HBillType = DBUtility.ClsPub.isStrNull(Ds.Tables[0].Rows[0]["HBillType"]);
                omodel.HBillSubType = DBUtility.ClsPub.isStrNull(Ds.Tables[0].Rows[0]["HBillSubType"]);
                omodel.HInterID = DBUtility.ClsPub.isLong(Ds.Tables[0].Rows[0]["HInterID"]);
                omodel.HDate = DBUtility.ClsPub.isDate(Ds.Tables[0].Rows[0]["HDate"]);
                omodel.HBillNo = Ds.Tables[0].Rows[0]["HBillNo"].ToString().Trim();
                omodel.HBillStatus = DBUtility.ClsPub.isInt(Ds.Tables[0].Rows[0]["HBillStatus"]);
                omodel.HCheckItemNowID = DBUtility.ClsPub.isLong(Ds.Tables[0].Rows[0]["HCheckItemNowID"]);
                omodel.HCheckItemNextID = DBUtility.ClsPub.isLong(Ds.Tables[0].Rows[0]["HCheckItemNextID"]);
                omodel.HCheckFlowID = DBUtility.ClsPub.isLong(Ds.Tables[0].Rows[0]["HCheckFlowID"]);
                omodel.HRemark = Ds.Tables[0].Rows[0]["HRemark"].ToString().Trim();
                omodel.HBackDate = Ds.Tables[0].Rows[0]["HBackDate"].ToString().Trim();
                omodel.HBacker = Ds.Tables[0].Rows[0]["HBacker"].ToString().Trim();
                omodel.HCheckDate = Ds.Tables[0].Rows[0]["HCheckDate"].ToString().Trim();
                omodel.HChecker = Ds.Tables[0].Rows[0]["HChecker"].ToString().Trim();
                omodel.HMaker = Ds.Tables[0].Rows[0]["HMaker"].ToString().Trim();
                omodel.HMakeDate = Ds.Tables[0].Rows[0]["HMakeDate"].ToString().Trim();
                omodel.HUpDateDate = Ds.Tables[0].Rows[0]["HUpDateDate"].ToString().Trim();
                omodel.HUpDater = Ds.Tables[0].Rows[0]["HUpDater"].ToString().Trim();
                omodel.HCloseDate = Ds.Tables[0].Rows[0]["HCloseDate"].ToString().Trim();
                omodel.HCloseMan = Ds.Tables[0].Rows[0]["HCloseMan"].ToString().Trim();
                omodel.HCloseType = DBUtility.ClsPub.isBool(Ds.Tables[0].Rows[0]["HCloseType"]);
                omodel.HDeleteDate = Ds.Tables[0].Rows[0]["HDeleteDate"].ToString().Trim();
                omodel.HDeleteMan = Ds.Tables[0].Rows[0]["HDeleteMan"].ToString().Trim();
                //========================================================
                omodel.HOrgID = DBUtility.ClsPub.isLong(Ds.Tables[0].Rows[0]["HOrgID"]);
                //
                //循环
                DataSet DsSub;
                DsSub = oCn.RunProcReturn("select * from Gy_SourceMouldBillSub where HInterID = " + lngBillKey.ToString() + "order by HEntryID", "Gy_SourceMouldBillSub");
                DetailColl.Clear();//清空
                for (int i = 0; i < DsSub.Tables[0].Rows.Count; i++)
                {
                    Model.ClsGy_SourceMouldBillSub oSub = new Model.ClsGy_SourceMouldBillSub();
                    // å›ºå®šèµ‹å€¼===============================================
                    oSub.HInterID = DBUtility.ClsPub.isLong(DsSub.Tables[0].Rows[i]["HInterID"]);
                    oSub.HEntryID = DBUtility.ClsPub.isLong(DsSub.Tables[0].Rows[i]["HEntryID"]);
                    oSub.HSourceInterID = DBUtility.ClsPub.isLong(DsSub.Tables[0].Rows[i]["HSourceInterID"]);
                    oSub.HSourceEntryID = DBUtility.ClsPub.isLong(DsSub.Tables[0].Rows[i]["HSourceEntryID"]);
                    oSub.HSourceBillType = DsSub.Tables[0].Rows[i]["HSourceBillType"].ToString().Trim();
                    oSub.HSourceBillNo = DsSub.Tables[0].Rows[i]["HSourceBillNo"].ToString().Trim();
                    oSub.HRelationQty = DBUtility.ClsPub.isDoule(DsSub.Tables[0].Rows[i]["HRelationQty"]);
                    oSub.HRelationMoney = DBUtility.ClsPub.isDoule(DsSub.Tables[0].Rows[i]["HRelationMoney"]);
                    oSub.HCloseMan = DBUtility.ClsPub.isStrNull(DsSub.Tables[0].Rows[i]["HCloseMan"]);
                    oSub.HCloseType = DBUtility.ClsPub.isBool(DsSub.Tables[0].Rows[i]["HCloseType"]);
                    oSub.HEntryCloseDate = DBUtility.ClsPub.isDate(DsSub.Tables[0].Rows[i]["HEntryCloseDate"]);
                    oSub.HRemark = DsSub.Tables[0].Rows[i]["HRemark"].ToString().Trim();
                    //===================================================
                    DetailColl.Add(oSub);
                }
                sReturn = "显示单据成功!";
                return true;
            }
            catch (Exception e)
            {
                sReturn = e.Message;
                throw (e);
            }
        }
        #endregion
    }
}
Model/Model.csproj
@@ -155,6 +155,8 @@
    <Compile Include="生产管理\模具管理\ClsSc_MouldMaintainPlanBillSub_Plan.cs" />
    <Compile Include="系统公用\ClsXt_DefineBillMainSetSub.cs" />
    <Compile Include="系统公用\ClsXt_DefineBillMainSetMain.cs" />
    <Compile Include="计划管理\ClsGy_SourceMouldBillMain.cs" />
    <Compile Include="计划管理\ClsGy_SourceMouldBillSub.cs" />
    <Compile Include="质检管理\ClsQC_EnvironmentTestDotCheckBillMain.cs" />
    <Compile Include="质检管理\ClsQC_EnvironmentTestDotCheckBillSub.cs" />
    <Compile Include="质检管理\ClsQC_MonthTarGetBillMain.cs" />
Model/¼Æ»®¹ÜÀí/ClsGy_SourceMouldBillMain.cs
New file
@@ -0,0 +1,17 @@
using System;
using System.Collections.Generic;
using System.Text;
namespace Model
{
    public class ClsGy_SourceMouldBillMain : DBUtility.ClsXt_BaseBillMain
    {
        public Int64 HOrgID;        //int       ç»„织
        public Int64 HDeptID;         //int       éƒ¨é—¨
        public Int64 HEmpID;         //int       è´Ÿè´£äºº
        public Int64 HSourceID;         //int       äº§çº¿
        public Int64 HWorkCenterID;    //int       å·¥ä½œä¸­å¿ƒ
        public Int64 HEquipID;    //int      è®¾å¤‡ID
        public Int64 HProcID; //工序ID
    }
}
Model/¼Æ»®¹ÜÀí/ClsGy_SourceMouldBillSub.cs
New file
@@ -0,0 +1,14 @@
using System;
using System.Collections.Generic;
using System.Text;
namespace Model
{
    public class ClsGy_SourceMouldBillSub : DBUtility.ClsXt_BaseBillSub
    {
        public Int64 HMouldID;
        public Int64 HMouldQty;
        public decimal HQty;
        public decimal HRate;
    }
}
WebAPI/Controllers/JHGL/Gy_SourceMouldBillController.cs
New file
@@ -0,0 +1,648 @@
using DBUtility;
using Model;
using Newtonsoft.Json;
using Newtonsoft.Json.Linq;
using System;
using System.Collections.Generic;
using System.Data;
using System.Linq;
using System.Web;
using System.Web.Http;
using System.Windows.Forms;
using WebAPI.Models;
namespace WebAPI.Controllers.JHGL
{
    public class Gy_SourceMouldBillController : ApiController
    {
        private json objJsonResult = new json();
        public DataSet ds = new DataSet();
        SQLHelper.ClsCN oCN = new SQLHelper.ClsCN();
        public DAL.ClsGy_SourceMouldBillMain BillNew1 = new DAL.ClsGy_SourceMouldBillMain();   //产品器具清单对应单据类
        public DAL.ClsGy_SourceMouldBillMain BillOld1 = new DAL.ClsGy_SourceMouldBillMain();
        public DBUtility.ClsPub.Enum_BillStatus BillStatus;//单据状态(新增,修改,浏览,更新单价,变更)
        #region äº§çº¿å™¨å…·æ¸…单单列表
        [Route("Gy_SourceMouldBill/Gy_SourceMouldBillList")]
        [HttpGet]
        public object Gy_SourceMouldBillList(string sWhere, string user)
        {
            try
            {
                List<object> columnNameList = new List<object>();
                //查询权限
                if (!DBUtility.ClsPub.Security_Log("Gy_SourceMouldBill_Query", 1, false, user))
                {
                    objJsonResult.code = "0";
                    objJsonResult.count = 0;
                    objJsonResult.Message = "无查看权限!";
                    objJsonResult.data = null;
                    return objJsonResult;
                }
                if (sWhere == null || sWhere.Equals(""))
                {
                    ds = oCN.RunProcReturn("select * from h_v_Gy_SourceMouldBillMainList order by å•据号 desc", "h_v_Gy_SourceMouldBillMainList");
                }
                else
                {
                    string sql1 = "select * from h_v_Gy_SourceMouldBillMainList where 1 = 1 ";
                    string sql = sql1 + sWhere + " order by å•据号 desc";
                    ds = oCN.RunProcReturn(sql, "h_v_Gy_SourceMouldBillMainList");
                }
                //添加列名
                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 = 1;
                objJsonResult.Message = "Sucess!";
                objJsonResult.data = ds.Tables[0];
                objJsonResult.list = columnNameList;
                return objJsonResult;
            }
            catch (Exception ex)
            {
                objJsonResult.code = "0";
                objJsonResult.count = 0;
                objJsonResult.Message = "没有返回任何记录!" + ex.ToString();
                objJsonResult.data = null;
                return objJsonResult;
            }
        }
        #endregion
        #region äº§å“å™¨å…·æ¸…单编辑时获取表体数据
        [Route("Gy_SourceMouldBill/Gy_SourceMouldBillEditList")]
        [HttpGet]
        public object Gy_SourceMouldBillEditList(string HInterID, string User)
        {
            try
            {
                //查看权限
                if (!DBUtility.ClsPub.Security_Log("Gy_SourceMouldBill_Edit", 1, false, User))
                {
                    objJsonResult.code = "0";
                    objJsonResult.count = 0;
                    objJsonResult.Message = "无查看权限!";
                    objJsonResult.data = null;
                    return objJsonResult;
                }
                if (HInterID == null || HInterID.Equals(""))
                {
                    objJsonResult.code = "0";
                    objJsonResult.count = 0;
                    objJsonResult.Message = "HInterID不能为空!";
                    objJsonResult.data = null;
                    return objJsonResult;
                }
                ds = oCN.RunProcReturn("select * from h_v_Gy_SourceMouldBill_Edit where HInterID = " + HInterID, "h_v_Gy_SourceMouldBill_Edit");
                if (ds != null && ds.Tables.Count > 0)
                {
                    objJsonResult.code = "1";
                    objJsonResult.count = 1;
                    objJsonResult.Message = "Sucess!";
                    objJsonResult.data = ds.Tables[0];
                    return objJsonResult;
                }
                else
                {
                    objJsonResult.code = "0";
                    objJsonResult.count = 0;
                    objJsonResult.Message = "没有查询到数据!";
                    objJsonResult.data = "";
                    return objJsonResult;
                }
            }
            catch (Exception e)
            {
                objJsonResult.code = "0";
                objJsonResult.count = 0;
                objJsonResult.Message = "Exception!" + e.ToString();
                objJsonResult.data = null;
                return objJsonResult;
            }
        }
        #endregion
        #region äº§å“å™¨å…·æ¸…单 ä¿å­˜/编辑
        /// <summary>
        /// ä¿å­˜æ¨¡å…·ç»´ä¿®å•
        /// </summary>
        /// <param name="msg"></param>
        /// <returns></returns>
        [Route("Gy_SourceMouldBill/SaveGy_SourceMouldBillMain")]
        [HttpPost]
        public object SaveGy_SourceMouldBillMain([FromBody] JObject sMainSub)
        {
            var _value = sMainSub["sMainSub"].ToString();
            string msg1 = _value.ToString();
            string[] sArray = msg1.Split(new string[] { ";" }, StringSplitOptions.RemoveEmptyEntries);
            string msg2 = sArray[0].ToString();
            string msg3 = sArray[1].ToString(); //子表
            string refSav = sArray[2].ToString();//操作方式数据类型 1添加 3修改 2 å¤åˆ¶
            string user = sArray[3].ToString();//用户名
            string UserName = "";
            string s = "";
            ListModels oListModels = new ListModels();
            try
            {
                //保存权限
                if (!DBUtility.ClsPub.Security_Log_second("Gy_SourceMouldBill_Edit", 1, false, user))
                {
                    objJsonResult.code = "0";
                    objJsonResult.count = 0;
                    objJsonResult.Message = "无保存权限!";
                    objJsonResult.data = null;
                    return objJsonResult;
                }
                DAL.ClsGy_SourceMouldBillMain oBill = new DAL.ClsGy_SourceMouldBillMain();
                List<Model.ClsGy_SourceMouldBillMain> lsmain = new List<Model.ClsGy_SourceMouldBillMain>();
                msg2 = msg2.Replace("\\", "");
                msg2 = msg2.Replace("\n", "");  //\n
                lsmain = oListModels.getObjectByJson_Gy_SourceMouldBillMain(msg2);
                foreach (Model.ClsGy_SourceMouldBillMain oItem in lsmain)
                {
                    if (refSav == "Add")
                    {
                        //单据号是否重复
                        if (BillNew1.IsExistBillNo(ref ClsPub.sExeReturnInfo, oItem.HBillNo, BillStatus, BillOld1.omodel.HInterID))
                        {
                            objJsonResult.code = "0";
                            objJsonResult.count = 0;
                            objJsonResult.Message = "单据号重复!不允许保存!";
                            objJsonResult.data = 1;
                            return objJsonResult;
                        }
                    }
                    if (refSav == "Update")
                    {
                        if (BillOld1.ShowBill(oItem.HInterID, ref s) == false)
                        {
                            objJsonResult.code = "0";
                            objJsonResult.count = 0;
                            objJsonResult.Message = "此单据有误!";
                            objJsonResult.data = 1;
                            return objJsonResult;
                        }
                        //判断是否可编辑
                        if (BillOld1.omodel.HChecker != "" && BillOld1.omodel.HChecker != null)
                        {
                            objJsonResult.code = "0";
                            objJsonResult.count = 0;
                            objJsonResult.Message = "此单据已经被审核,不允许修改!";
                            objJsonResult.data = 1;
                            return objJsonResult;
                        }
                        if (BillOld1.omodel.HBillStatus > 1)
                        {
                            objJsonResult.code = "0";
                            objJsonResult.count = 0;
                            objJsonResult.Message = "此单据处于不可编辑状态,不允许修改!";
                            objJsonResult.data = 1;
                            return objJsonResult;
                        }
                        if (!DBUtility.Xt_BaseBillFun.Fun_AllowEditBill(BillOld1, ref s))
                        {
                            objJsonResult.code = "0";
                            objJsonResult.count = 0;
                            objJsonResult.Message = s + ",不允许修改";
                            objJsonResult.data = 1;
                            return objJsonResult;
                        }
                    }
                    UserName = oItem.HMaker;  //制单人
                    oItem.HBillType = "4617";
                    oItem.HBillSubType = "4617";
                    oItem.HYear = DBUtility.ClsPub.isLong(DateTime.Now.Year);
                    oItem.HPeriod = DBUtility.ClsPub.isLong(DateTime.Now.Month);
                    oItem.HMakeDate = DBUtility.ClsPub.isStrNull(DateTime.Now.ToString("yyyy-MM-dd"));
                    if (DBUtility.ClsPub.isStrNull(oItem.HDate) == "")
                    {
                        objJsonResult.code = "0";
                        objJsonResult.count = 0;
                        objJsonResult.Message = "保存失败!没有单据日期,无法保存!";
                        objJsonResult.data = 1;
                        return objJsonResult;
                    }
                    oBill.omodel = oItem;
                }
                // è¡¨ä½“数据
                //按 },{来拆分数组 //去掉【和】
                msg3 = msg3.Substring(1, msg3.Length - 2);
                msg3 = msg3.Replace("\\", "");
                msg3 = msg3.Replace("\n", "");  //\n
                List<Model.ClsGy_SourceMouldBillSub> ls = new List<Model.ClsGy_SourceMouldBillSub>();
                ls = oListModels.getObjectByJson_Gy_SourceMouldBillSub(msg3);
                int i = 0;
                foreach (Model.ClsGy_SourceMouldBillSub oItemSub in ls)
                {
                    i++;
                    oItemSub.HEntryID = i;
                    oItemSub.HEntryCloseDate = DBUtility.ClsPub.isDate(DateTime.Now);
                    oItemSub.HCloseType = false;   //关闭类型
                    oBill.DetailColl.Add(oItemSub);
                }
                //保存
                //保存完毕后处理
                bool bResult;
                if (refSav == "Add")
                {
                    bResult = oBill.AddBill(ref DBUtility.ClsPub.sExeReturnInfo);
                }
                else if (refSav == "Update")
                {
                    bResult = oBill.ModifyBill(oBill.omodel.HInterID, ref DBUtility.ClsPub.sExeReturnInfo);
                }
                else
                {
                    bResult = false;
                }
                if (bResult)
                {
                    objJsonResult.code = "0";
                    objJsonResult.count = 1;
                    objJsonResult.Message = "保存成功!";
                    objJsonResult.data = 1;
                    return objJsonResult;
                }
                else
                {
                    objJsonResult.code = "0";
                    objJsonResult.count = 0;
                    objJsonResult.Message = "保存失败!" + DBUtility.ClsPub.sExeReturnInfo;
                    objJsonResult.data = 1;
                    return objJsonResult;
                }
            }
            catch (Exception e)
            {
                objJsonResult.code = "0";
                objJsonResult.count = 0;
                objJsonResult.Message = "保存失败!" + e.ToString();
                objJsonResult.data = 1;
                return objJsonResult;
            }
        }
        #endregion
        #region äº§çº¿å™¨å…·æ¸…单记录删除功能
        [Route("Gy_SourceMouldBill/DeleteGy_SourceMould")]
        [HttpGet]
        public object DeleteGy_SourceMould(string HInterID, string user)
        {
            try
            {
                //删除权限
                if (!DBUtility.ClsPub.Security_Log("Gy_SourceMouldBill_Delete", 1, false, user))
                {
                    objJsonResult.code = "0";
                    objJsonResult.count = 0;
                    objJsonResult.Message = "无删除权限!";
                    objJsonResult.data = null;
                    return objJsonResult;
                }
                if (HInterID == null || HInterID.Equals(""))
                {
                    objJsonResult.code = "0";
                    objJsonResult.count = 0;
                    objJsonResult.Message = "HInterID不能为空!";
                    objJsonResult.data = null;
                    return objJsonResult;
                }
                oCN.BeginTran();
                oCN.RunProc("delete from Gy_SourceMouldBillMain where HInterID = " + HInterID);
                oCN.RunProc("delete from Gy_SourceMouldBillSub where HInterID = " + HInterID);
                oCN.Commit();
                objJsonResult.code = "1";
                objJsonResult.count = 1;
                objJsonResult.Message = "删除成功!";
                objJsonResult.data = null;
                return objJsonResult;
            }
            catch (Exception e)
            {
                oCN.RollBack();
                objJsonResult.code = "0";
                objJsonResult.count = 0;
                objJsonResult.Message = "Exception!" + e.ToString();
                objJsonResult.data = null;
                return objJsonResult;
            }
        }
        #endregion
        #region äº§å“å™¨å…·æ¸…单列表 å®¡æ ¸/反审核功能
        [Route("Gy_SourceMouldBill/CheckGy_SourceMouldBillMain")]
        [HttpGet]
        public object CheckGy_SourceMouldBillMain(int HInterID, int IsAudit, string CurUserName)
        {
            DBUtility.ClsPub.CurUserName = CurUserName;
            try
            {
                //审核权限
                if (!DBUtility.ClsPub.Security_Log_second("Gy_SourceMouldBill_Check", 1, false, CurUserName))
                {
                    objJsonResult.code = "0";
                    objJsonResult.count = 0;
                    objJsonResult.Message = "审核失败!无权限!";
                    objJsonResult.data = null;
                    return objJsonResult;
                }
                //HInterID数据判断
                if (HInterID <= 0)
                {
                    objJsonResult.code = "0";
                    objJsonResult.count = 0;
                    objJsonResult.Message = "HInterID小于0!";
                    objJsonResult.data = null;
                    return objJsonResult;
                }
                Int64 lngBillKey = 0;
                lngBillKey = DBUtility.ClsPub.isLong(HInterID);                                         //对HInterID进行类型的转换
                DAL.ClsGy_SourceMouldBillMain oBill = new DAL.ClsGy_SourceMouldBillMain();                              //实例化单据操作类,用于进行相关操作
                //针对需要进行的操作,检验当前单据的状态是否支持需要进行的操作
                if (oBill.ShowBill(lngBillKey, ref DBUtility.ClsPub.sExeReturnInfo))                    //根据HInterID获取该单据的数据
                {
                    if (oBill.omodel.HCloseMan.Trim() != "")
                    {
                        objJsonResult.code = "0";
                        objJsonResult.count = 0;
                        objJsonResult.Message = "单据已关闭!不能再次审核!";
                        objJsonResult.data = null;
                        return objJsonResult;
                    }
                    if (oBill.omodel.HDeleteMan.Trim() != "")
                    {
                        objJsonResult.code = "0";
                        objJsonResult.count = 0;
                        objJsonResult.Message = "单据已作废!不能再次审核!";
                        objJsonResult.data = null;
                        return objJsonResult;
                    }
                    if (IsAudit == 0)  //审核判断
                    {
                        if (oBill.omodel.HChecker.Trim() != "")
                        {
                            objJsonResult.code = "0";
                            objJsonResult.count = 0;
                            objJsonResult.Message = "单据已审核!不能再次审核!";
                            objJsonResult.data = null;
                            return objJsonResult;
                        }
                    }
                    if (IsAudit == 1) //反审核判断
                    {
                        if (oBill.omodel.HChecker.Trim() == "")
                        {
                            objJsonResult.code = "0";
                            objJsonResult.count = 0;
                            objJsonResult.Message = "单据未审核!不需要反审核!";
                            objJsonResult.data = null;
                            return objJsonResult;
                        }
                    }
                }
                else
                {
                    objJsonResult.code = "0";
                    objJsonResult.count = 0;
                    objJsonResult.Message = "单据不存在!原因:" + DBUtility.ClsPub.sExeReturnInfo;
                    objJsonResult.data = null;
                    return objJsonResult;
                }
                //进行需要进行的审核/反审核操作
                if (IsAudit == 0) //审核提交
                {
                    oCN.BeginTran();
                    //记录返回信息
                    string msg = "";
                    //审核前控制=========================================
                    string sql1 = "exec h_p_Gy_SourceMouldBill_BeforeCheckCtrl " + oBill.omodel.HInterID + ",'" + oBill.omodel.HBillNo + "','" + CurUserName + "'";
                    ds = oCN.RunProcReturn(sql1, "h_p_Gy_SourceMouldBill_BeforeCheckCtrl");
                    if (ds == null || ds.Tables.Count == 0 || ds.Tables[0].Rows.Count == 0)
                    {
                        objJsonResult.code = "0";
                        objJsonResult.count = 1;
                        objJsonResult.Message = "审核失败!原因:审核前判断失败,请与网络管理人员联系";
                        objJsonResult.data = null;
                        oCN.RollBack();
                        return objJsonResult;
                    }
                    if (ds.Tables[0].Rows[0]["HBack"].ToString() != "0")
                    {
                        objJsonResult.code = "0";
                        objJsonResult.count = 1;
                        objJsonResult.Message = "审核失败!原因:" + ds.Tables[0].Rows[0]["HRemark"].ToString(); ;
                        objJsonResult.data = null;
                        oCN.RollBack();
                        return objJsonResult;
                    }
                    //==================================================================================
                    //审核提交
                    if (oBill.CheckBill(oBill.omodel.HInterID, oBill.omodel.HBillNo, "h_p_Gy_SourceMouldBill_AfterCheckCtrl", CurUserName, ref DBUtility.ClsPub.sExeReturnInfo) == true)
                    {
                        oCN.Commit();
                        objJsonResult.code = "1";
                        objJsonResult.count = 1;
                        objJsonResult.Message = "审核成功!" + msg;
                        objJsonResult.data = null;
                        return objJsonResult;
                    }
                    else
                    {
                        oCN.RollBack();
                        objJsonResult.code = "0";
                        objJsonResult.count = 0;
                        objJsonResult.Message = "审核失败!原因:" + DBUtility.ClsPub.sExeReturnInfo;
                        objJsonResult.data = null;
                        return objJsonResult;
                    }
                }
                if (IsAudit == 1) //反审核提交
                {
                    //反审核前控制=========================================
                    string sql1 = "exec h_p_Gy_SourceMouldBill_BeforeUnCheckCtrl " + oBill.omodel.HInterID + ",'" + oBill.omodel.HBillNo + "','" + CurUserName + "'";
                    ds = oCN.RunProcReturn(sql1, "h_p_Gy_SourceMouldBill_BeforeUnCheckCtrl");
                    if (ds == null || ds.Tables.Count == 0 || ds.Tables[0].Rows.Count == 0)
                    {
                        objJsonResult.code = "0";
                        objJsonResult.count = 1;
                        objJsonResult.Message = "反审核失败!原因:反审核前判断失败,请与网络管理人员联系";
                        objJsonResult.data = null;
                        return objJsonResult;
                    }
                    if (ds.Tables[0].Rows[0]["HBack"].ToString() != "0")
                    {
                        objJsonResult.code = "0";
                        objJsonResult.count = 1;
                        objJsonResult.Message = "反审核失败!原因:" + ds.Tables[0].Rows[0]["HRemark"].ToString(); ;
                        objJsonResult.data = null;
                        return objJsonResult;
                    }
                    //===========================================================
                    //反审核提交AbandonCheck
                    if (oBill.AbandonCheck(oBill.omodel.HInterID, oBill.omodel.HBillNo, "h_p_Gy_SourceMouldBill_AfterUnCheckCtrl", CurUserName, ref DBUtility.ClsPub.sExeReturnInfo) == true)
                    {
                        objJsonResult.code = "1";
                        objJsonResult.count = 1;
                        objJsonResult.Message = "反审核成功";
                        objJsonResult.data = null;
                        return objJsonResult;
                    }
                    else
                    {
                        objJsonResult.code = "0";
                        objJsonResult.count = 0;
                        objJsonResult.Message = "反审核失败!原因:" + DBUtility.ClsPub.sExeReturnInfo;
                        objJsonResult.data = null;
                        return objJsonResult;
                    }
                }
                return objJsonResult;
            }
            catch (Exception e)
            {
                oCN.RollBack();
                objJsonResult.code = "0";
                objJsonResult.count = 0;
                objJsonResult.Message = "审核失败或者反审核失败!" + e.ToString();
                objJsonResult.data = null;
                return objJsonResult;
            }
        }
        #endregion
        #region äº§çº¿å™¨å…·æ¸…单列表 å…³é—­/反关闭功能
        [Route("Gy_SourceMouldBill/CloseGy_SourceMouldBillMain")]
        [HttpGet]
        public object CloseGy_SourceMouldBillMain(string HInterID, int IsAudit, string user)
        {
            try
            {
                //判断是否有关闭权限
                if (!DBUtility.ClsPub.Security_Log("Gy_SourceMouldBill_Close", 1, false, user))
                {
                    objJsonResult.code = "0";
                    objJsonResult.count = 0;
                    objJsonResult.Message = "无权限关闭!";
                    objJsonResult.data = null;
                    return objJsonResult;
                }
                var ds = oCN.RunProcReturn("select * from Gy_SourceMouldBillMain  where HInterID=" + HInterID, "Gy_SourceMouldBillMain");
                if (ds.Tables[0].Rows.Count > 0)
                {
                    if (IsAudit == 0)  //关闭判断
                    {
                        if (ds.Tables[0].Rows[0]["HCloseMan"].ToString() != "")
                        {
                            objJsonResult.code = "0";
                            objJsonResult.count = 0;
                            objJsonResult.Message = "单据已关闭!不能再次关闭!";
                            objJsonResult.data = null;
                            return objJsonResult;
                        }
                    }
                    if (IsAudit == 1) //反关闭判断
                    {
                        if (ds.Tables[0].Rows[0]["HCloseMan"].ToString() == "")
                        {
                            objJsonResult.code = "0";
                            objJsonResult.count = 0;
                            objJsonResult.Message = "单据未关闭!不需要反关闭!";
                            objJsonResult.data = null;
                            return objJsonResult;
                        }
                    }
                }
                else
                {
                    objJsonResult.code = "0";
                    objJsonResult.count = 0;
                    objJsonResult.Message = "单据不存在!";
                    objJsonResult.data = null;
                    return objJsonResult;
                }
                oCN.BeginTran();
                if (IsAudit == 0)  //关闭判断
                {
                    oCN.RunProc("update Gy_SourceMouldBillMain  set HCloseMan='" + user + "',HCloseDate=getdate() where HInterID=" + HInterID);
                    objJsonResult.code = "1";
                    objJsonResult.count = 1;
                    objJsonResult.Message = "关闭成功";
                    objJsonResult.data = null;
                }
                if (IsAudit == 1) //反审核判断
                {
                    oCN.RunProc("update Gy_SourceMouldBillMain  set HCloseMan='',HCloseDate=null where HInterID=" + HInterID);
                    objJsonResult.code = "1";
                    objJsonResult.count = 1;
                    objJsonResult.Message = "反关闭成功";
                    objJsonResult.data = null;
                }
                oCN.Commit();
                return objJsonResult;
            }
            catch (Exception e)
            {
                objJsonResult.code = "0";
                objJsonResult.count = 0;
                objJsonResult.Message = "执行失败!" + e.ToString();
                objJsonResult.data = null;
                return objJsonResult;
            }
        }
        #endregion
    }
}
WebAPI/Controllers/ÌõÂë¹ÜÀí/WEBSController.cs
@@ -3871,6 +3871,92 @@
        #endregion
        #region é”€å”®é€€è´§    ä¸Šä¼ ç”Ÿå•
        #region é”€å”®é€€è´§    æ–°å¢žæ¨¡å¼
        /// <summary>
        /// é”€å”®é€€è´§æ–°å¢žä¸Šä¼ 
        /// </summary>
        /// <returns></returns>
        [Route("WEBSController/set_SaveSellOutBackBill_Json")]
        [HttpPost]
        public object set_SaveSellOutBackBill_Json([FromBody] JObject oMain)
        {
            var _value = oMain["oMain"].ToString();
            string msg1 = _value.ToString();
            try
            {
                List<Model.ClsKf_ICStockBillMain> lsmain = new List<Model.ClsKf_ICStockBillMain>();
                ListModels oListModels = new ListModels();
                lsmain = oListModels.getICStockBillMainByJson(msg1);
                WebS.ClsKf_ICStockBillMain websLsmain = new WebS.ClsKf_ICStockBillMain();
                string sSourceType = lsmain[0].HMainSourceBillType;
                websLsmain.HInterID = lsmain[0].HInterID;
                websLsmain.HBillNo = lsmain[0].HBillNo;
                websLsmain.HBillType = lsmain[0].HBillType;
                websLsmain.HDate = lsmain[0].HDate;
                websLsmain.HDeptID = lsmain[0].HDeptID;
                websLsmain.HWHID = lsmain[0].HWHID;
                websLsmain.HSCWHID = lsmain[0].HSCWHID;
                websLsmain.HSupID = lsmain[0].HSupID;
                websLsmain.HKeeperID = lsmain[0].HKeeperID;
                websLsmain.HSecManagerID = lsmain[0].HSecManagerID;
                websLsmain.HEmpID = lsmain[0].HEmpID;
                websLsmain.HManagerID = lsmain[0].HManagerID;
                websLsmain.HRemark = lsmain[0].HRemark;
                websLsmain.HExplanation = lsmain[0].HExplanation;
                websLsmain.HInnerBillNo = lsmain[0].HInnerBillNo;
                websLsmain.HRedBlueFlag = lsmain[0].HRedBlueFlag;
                websLsmain.HBillSubType = lsmain[0].HBillSubType;
                if (lsmain[0].HMainSourceBillType == "1403")
                {
                    websLsmain.HMainSourceBillType = "退货通知单";
                }
                else if (lsmain[0].HMainSourceBillType == "1401")
                {
                    websLsmain.HMainSourceBillType = "销售订单";
                }
                else
                {
                    websLsmain.HMainSourceBillType = "手工录入";
                }
                websLsmain.HMaker = lsmain[0].HMaker;
                websLsmain.HBillerID = lsmain[0].HBillerID;
                websLsmain.HSTOCKORGID = lsmain[0].HSTOCKORGID;
                websLsmain.HOWNERID = lsmain[0].HSTOCKORGID;
                if (oWebs.set_SaveSellOutBackBill_New(websLsmain, sSourceType, ref DBUtility.ClsPub.sErrInfo))
                {
                    objJsonResult.code = "0";
                    objJsonResult.count = 1;
                    objJsonResult.Message = DBUtility.ClsPub.sErrInfo;  //成功!
                    objJsonResult.data = null;
                    return objJsonResult;
                }
                else
                {
                    objJsonResult.code = "0";
                    objJsonResult.count = 0;
                    objJsonResult.Message = DBUtility.ClsPub.sErrInfo;  //失败!
                    objJsonResult.data = null;
                    return objJsonResult;
                }
            }
            catch (Exception e)
            {
                objJsonResult.code = "0";
                objJsonResult.count = 0;
                objJsonResult.Message = "销售退货单上传失败!" + e.ToString();
                objJsonResult.data = null;
                return objJsonResult;
            }
        }
        #endregion
        #endregion
        #region ç”Ÿäº§ç»„托单    ä¸Šä¼ ç”Ÿå•
        /// <summary>
@@ -4719,6 +4805,48 @@
        #endregion
        #region é”€å”®é€€è´§    æ‰«ææºå•条码
        /// <summary>
        /// é”€å”®é€€è´§    æ‰«ææºå•条码
        /// </summary>
        /// <returns></returns>
        [Route("WEBSController/Get_SourceBarCode_SellOutBack_Json")]
        [HttpGet]
        public object Get_SourceBarCode_SellOutBack_Json(Int64 HInterID, string HBillNo, string HBillType, string HSourceBillNo, string HSourceBillType, string HMaker, Int64 HStockOrgID)
        {
            try
            {
                WebSoBar = oWebs.get_SourceBarCode_SellOutBack(HInterID, HBillNo, HBillType, HSourceBillNo, HSourceBillType, HMaker, HStockOrgID, ref DBUtility.ClsPub.sErrInfo);
                if (WebSoBar == null)
                {
                    objJsonResult.code = "0";
                    objJsonResult.count = 0;
                    objJsonResult.Message = DBUtility.ClsPub.sErrInfo;
                    objJsonResult.data = null;
                    return objJsonResult;
                }
                else
                {
                    objJsonResult.code = "0";
                    objJsonResult.count = 1;
                    objJsonResult.Message = "成功";
                    objJsonResult.data = WebSoBar;
                    return objJsonResult;
                }
            }
            catch (Exception e)
            {
                objJsonResult.code = "0";
                objJsonResult.count = 0;
                objJsonResult.Message = "扫描源单条码失败!" + e.ToString();
                objJsonResult.data = null;
                return objJsonResult;
            }
        }
        #endregion
        #endregion
WebAPI/ListModels.cs
@@ -1637,6 +1637,30 @@
        }
        /// <summary>
        /// å¤„理新增产线器具清单表的json
        /// </summary>
        /// <param name="jsonString"></param>
        /// <returns></returns>
        public List<Model.ClsGy_SourceMouldBillMain> getObjectByJson_Gy_SourceMouldBillMain(string jsonString)
        {
            jsonString = "[" + jsonString.ToString() + "]";
            List<Model.ClsGy_SourceMouldBillMain> list = Newtonsoft.Json.JsonConvert.DeserializeObject<List<Model.ClsGy_SourceMouldBillMain>>(jsonString);
            return list;
        }
        /// <summary>
        /// å¤„理新增产线器具清单子表的json
        /// </summary>
        /// <param name="jsonString"></param>
        /// <returns></returns>
        public List<Model.ClsGy_SourceMouldBillSub> getObjectByJson_Gy_SourceMouldBillSub(string jsonString)
        {
            jsonString = "[" + jsonString.ToString() + "]";
            List<Model.ClsGy_SourceMouldBillSub> list = Newtonsoft.Json.JsonConvert.DeserializeObject<List<Model.ClsGy_SourceMouldBillSub>>(jsonString);
            return list;
        }
        /// <summary>
        /// å¤„理新增产品工艺参数清单表的json
        /// </summary>
        /// <param name="jsonString"></param>
WebAPI/Web References/WebS/Reference.cs
@@ -34,7 +34,11 @@
    [System.Xml.Serialization.XmlIncludeAttribute(typeof(ClsXt_BaseBillMain))]
    public partial class WebService1 : System.Web.Services.Protocols.SoapHttpClientProtocol {
        
        private System.Threading.SendOrPostCallback get_SourceBarCode_POStockInBackOperationCompleted;
        private System.Threading.SendOrPostCallback get_SourceBarCode_MateOutBackOperationCompleted;
        private System.Threading.SendOrPostCallback get_SourceBarCode_SellOutBackOperationCompleted;
        
        private System.Threading.SendOrPostCallback get_BarCodeOperationCompleted;
        
@@ -197,6 +201,8 @@
        private System.Threading.SendOrPostCallback DeleteMouldOperationCompleted;
        
        private System.Threading.SendOrPostCallback set_SavePonderationBillMain_Temp_BarCode_MouldOperationCompleted;
        private System.Threading.SendOrPostCallback get_ORGANIZATIONS_UserByOrgRelationOperationCompleted;
        
        private System.Threading.SendOrPostCallback get_ORGANIZATIONSIDByNameOperationCompleted;
        
@@ -364,7 +370,7 @@
        
        private System.Threading.SendOrPostCallback get_SourceBarCode_MoveStockStepInOperationCompleted;
        
        private System.Threading.SendOrPostCallback get_SourceBarCode_POStockInBackOperationCompleted;
        private System.Threading.SendOrPostCallback set_CheckEntrustInBillOperationCompleted;
        
        private System.Threading.SendOrPostCallback set_AuditEntrustInBillOperationCompleted;
        
@@ -496,7 +502,7 @@
        
        private System.Threading.SendOrPostCallback get_ORGANIZATIONSOperationCompleted;
        
        private System.Threading.SendOrPostCallback get_ORGANIZATIONS_UserByOrgRelationOperationCompleted;
        private System.Threading.SendOrPostCallback set_SaveEntrustOutBill_NewOperationCompleted;
        
        private System.Threading.SendOrPostCallback set_SaveEntrustOutBill_CLD_NewOperationCompleted;
        
@@ -592,7 +598,7 @@
        
        private System.Threading.SendOrPostCallback set_CheckAddEntrustInBillOperationCompleted;
        
        private System.Threading.SendOrPostCallback set_CheckEntrustInBillOperationCompleted;
        private System.Threading.SendOrPostCallback set_SaveMoveStockStepOutBill_CLD_NewOperationCompleted;
        
        private System.Threading.SendOrPostCallback set_SaveMoveStockStepInBill_NewOperationCompleted;
        
@@ -691,8 +697,6 @@
        private System.Threading.SendOrPostCallback set_AuditEntrustOutBillOperationCompleted;
        
        private System.Threading.SendOrPostCallback GetKf_EntrustOutBill_K3_SourceOperationCompleted;
        private System.Threading.SendOrPostCallback set_SaveEntrustOutBill_NewOperationCompleted;
        
        private System.Threading.SendOrPostCallback set_ClearPonderationBillMain_Temp_ChangGuiOperationCompleted;
        
@@ -824,11 +828,7 @@
        
        private System.Threading.SendOrPostCallback set_SaveMoveStockBill_BillCheckOperationCompleted;
        
        private System.Threading.SendOrPostCallback set_SaveMoveStockBill_CLD_BillCheckOperationCompleted;
        private System.Threading.SendOrPostCallback set_SaveMoveStockStepOutBill_NewOperationCompleted;
        private System.Threading.SendOrPostCallback set_SaveMoveStockStepOutBill_CLD_NewOperationCompleted;
        
        private System.Threading.SendOrPostCallback GetSc_ICMOBillListOperationCompleted;
        
@@ -1209,7 +1209,13 @@
        }
        
        /// <remarks/>
        public event get_SourceBarCode_POStockInBackCompletedEventHandler get_SourceBarCode_POStockInBackCompleted;
        /// <remarks/>
        public event get_SourceBarCode_MateOutBackCompletedEventHandler get_SourceBarCode_MateOutBackCompleted;
        /// <remarks/>
        public event get_SourceBarCode_SellOutBackCompletedEventHandler get_SourceBarCode_SellOutBackCompleted;
        
        /// <remarks/>
        public event get_BarCodeCompletedEventHandler get_BarCodeCompleted;
@@ -1453,6 +1459,9 @@
        
        /// <remarks/>
        public event set_SavePonderationBillMain_Temp_BarCode_MouldCompletedEventHandler set_SavePonderationBillMain_Temp_BarCode_MouldCompleted;
        /// <remarks/>
        public event get_ORGANIZATIONS_UserByOrgRelationCompletedEventHandler get_ORGANIZATIONS_UserByOrgRelationCompleted;
        
        /// <remarks/>
        public event get_ORGANIZATIONSIDByNameCompletedEventHandler get_ORGANIZATIONSIDByNameCompleted;
@@ -1704,7 +1713,7 @@
        public event get_SourceBarCode_MoveStockStepInCompletedEventHandler get_SourceBarCode_MoveStockStepInCompleted;
        
        /// <remarks/>
        public event get_SourceBarCode_POStockInBackCompletedEventHandler get_SourceBarCode_POStockInBackCompleted;
        public event set_CheckEntrustInBillCompletedEventHandler set_CheckEntrustInBillCompleted;
        
        /// <remarks/>
        public event set_AuditEntrustInBillCompletedEventHandler set_AuditEntrustInBillCompleted;
@@ -1902,7 +1911,7 @@
        public event get_ORGANIZATIONSCompletedEventHandler get_ORGANIZATIONSCompleted;
        
        /// <remarks/>
        public event get_ORGANIZATIONS_UserByOrgRelationCompletedEventHandler get_ORGANIZATIONS_UserByOrgRelationCompleted;
        public event set_SaveEntrustOutBill_NewCompletedEventHandler set_SaveEntrustOutBill_NewCompleted;
        
        /// <remarks/>
        public event set_SaveEntrustOutBill_CLD_NewCompletedEventHandler set_SaveEntrustOutBill_CLD_NewCompleted;
@@ -2046,7 +2055,7 @@
        public event set_CheckAddEntrustInBillCompletedEventHandler set_CheckAddEntrustInBillCompleted;
        
        /// <remarks/>
        public event set_CheckEntrustInBillCompletedEventHandler set_CheckEntrustInBillCompleted;
        public event set_SaveMoveStockStepOutBill_CLD_NewCompletedEventHandler set_SaveMoveStockStepOutBill_CLD_NewCompleted;
        
        /// <remarks/>
        public event set_SaveMoveStockStepInBill_NewCompletedEventHandler set_SaveMoveStockStepInBill_NewCompleted;
@@ -2194,9 +2203,6 @@
        
        /// <remarks/>
        public event GetKf_EntrustOutBill_K3_SourceCompletedEventHandler GetKf_EntrustOutBill_K3_SourceCompleted;
        /// <remarks/>
        public event set_SaveEntrustOutBill_NewCompletedEventHandler set_SaveEntrustOutBill_NewCompleted;
        
        /// <remarks/>
        public event set_ClearPonderationBillMain_Temp_ChangGuiCompletedEventHandler set_ClearPonderationBillMain_Temp_ChangGuiCompleted;
@@ -2394,13 +2400,7 @@
        public event set_SaveMoveStockBill_BillCheckCompletedEventHandler set_SaveMoveStockBill_BillCheckCompleted;
        
        /// <remarks/>
        public event set_SaveMoveStockBill_CLD_BillCheckCompletedEventHandler set_SaveMoveStockBill_CLD_BillCheckCompleted;
        /// <remarks/>
        public event set_SaveMoveStockStepOutBill_NewCompletedEventHandler set_SaveMoveStockStepOutBill_NewCompleted;
        /// <remarks/>
        public event set_SaveMoveStockStepOutBill_CLD_NewCompletedEventHandler set_SaveMoveStockStepOutBill_CLD_NewCompleted;
        
        /// <remarks/>
        public event GetSc_ICMOBillListCompletedEventHandler GetSc_ICMOBillListCompleted;
@@ -2913,6 +2913,50 @@
        public event GetSc_ICMOBackBillListCompletedEventHandler GetSc_ICMOBackBillListCompleted;
        
        /// <remarks/>
        [System.Web.Services.Protocols.SoapDocumentMethodAttribute("http://tempuri.org/get_SourceBarCode_POStockInBack", RequestNamespace="http://tempuri.org/", ResponseNamespace="http://tempuri.org/", Use=System.Web.Services.Description.SoapBindingUse.Literal, ParameterStyle=System.Web.Services.Protocols.SoapParameterStyle.Wrapped)]
        public ClsKf_ICStockBill_WMS get_SourceBarCode_POStockInBack(long HInterID, string HBillNo, string HBillType, string HSourceBillNo, string HSourceBillType, string HMaker, long HStockOrgID, ref string sErrMsg) {
            object[] results = this.Invoke("get_SourceBarCode_POStockInBack", new object[] {
                        HInterID,
                        HBillNo,
                        HBillType,
                        HSourceBillNo,
                        HSourceBillType,
                        HMaker,
                        HStockOrgID,
                        sErrMsg});
            sErrMsg = ((string)(results[1]));
            return ((ClsKf_ICStockBill_WMS)(results[0]));
        }
        /// <remarks/>
        public void get_SourceBarCode_POStockInBackAsync(long HInterID, string HBillNo, string HBillType, string HSourceBillNo, string HSourceBillType, string HMaker, long HStockOrgID, string sErrMsg) {
            this.get_SourceBarCode_POStockInBackAsync(HInterID, HBillNo, HBillType, HSourceBillNo, HSourceBillType, HMaker, HStockOrgID, sErrMsg, null);
        }
        /// <remarks/>
        public void get_SourceBarCode_POStockInBackAsync(long HInterID, string HBillNo, string HBillType, string HSourceBillNo, string HSourceBillType, string HMaker, long HStockOrgID, string sErrMsg, object userState) {
            if ((this.get_SourceBarCode_POStockInBackOperationCompleted == null)) {
                this.get_SourceBarCode_POStockInBackOperationCompleted = new System.Threading.SendOrPostCallback(this.Onget_SourceBarCode_POStockInBackOperationCompleted);
            }
            this.InvokeAsync("get_SourceBarCode_POStockInBack", new object[] {
                        HInterID,
                        HBillNo,
                        HBillType,
                        HSourceBillNo,
                        HSourceBillType,
                        HMaker,
                        HStockOrgID,
                        sErrMsg}, this.get_SourceBarCode_POStockInBackOperationCompleted, userState);
        }
        private void Onget_SourceBarCode_POStockInBackOperationCompleted(object arg) {
            if ((this.get_SourceBarCode_POStockInBackCompleted != null)) {
                System.Web.Services.Protocols.InvokeCompletedEventArgs invokeArgs = ((System.Web.Services.Protocols.InvokeCompletedEventArgs)(arg));
                this.get_SourceBarCode_POStockInBackCompleted(this, new get_SourceBarCode_POStockInBackCompletedEventArgs(invokeArgs.Results, invokeArgs.Error, invokeArgs.Cancelled, invokeArgs.UserState));
            }
        }
        /// <remarks/>
        [System.Web.Services.Protocols.SoapDocumentMethodAttribute("http://tempuri.org/get_SourceBarCode_MateOutBack", RequestNamespace="http://tempuri.org/", ResponseNamespace="http://tempuri.org/", Use=System.Web.Services.Description.SoapBindingUse.Literal, ParameterStyle=System.Web.Services.Protocols.SoapParameterStyle.Wrapped)]
        public ClsKf_ICStockBill_WMS get_SourceBarCode_MateOutBack(long HInterID, string HBillNo, string HBillType, string HSourceBillNo, string HSourceBillType, string HMaker, long HStockOrgID, ref string sErrMsg) {
            object[] results = this.Invoke("get_SourceBarCode_MateOutBack", new object[] {
@@ -2953,6 +2997,50 @@
            if ((this.get_SourceBarCode_MateOutBackCompleted != null)) {
                System.Web.Services.Protocols.InvokeCompletedEventArgs invokeArgs = ((System.Web.Services.Protocols.InvokeCompletedEventArgs)(arg));
                this.get_SourceBarCode_MateOutBackCompleted(this, new get_SourceBarCode_MateOutBackCompletedEventArgs(invokeArgs.Results, invokeArgs.Error, invokeArgs.Cancelled, invokeArgs.UserState));
            }
        }
        /// <remarks/>
        [System.Web.Services.Protocols.SoapDocumentMethodAttribute("http://tempuri.org/get_SourceBarCode_SellOutBack", RequestNamespace="http://tempuri.org/", ResponseNamespace="http://tempuri.org/", Use=System.Web.Services.Description.SoapBindingUse.Literal, ParameterStyle=System.Web.Services.Protocols.SoapParameterStyle.Wrapped)]
        public ClsKf_ICStockBill_WMS get_SourceBarCode_SellOutBack(long HInterID, string HBillNo, string HBillType, string HSourceBillNo, string HSourceBillType, string HMaker, long HStockOrgID, ref string sErrMsg) {
            object[] results = this.Invoke("get_SourceBarCode_SellOutBack", new object[] {
                        HInterID,
                        HBillNo,
                        HBillType,
                        HSourceBillNo,
                        HSourceBillType,
                        HMaker,
                        HStockOrgID,
                        sErrMsg});
            sErrMsg = ((string)(results[1]));
            return ((ClsKf_ICStockBill_WMS)(results[0]));
        }
        /// <remarks/>
        public void get_SourceBarCode_SellOutBackAsync(long HInterID, string HBillNo, string HBillType, string HSourceBillNo, string HSourceBillType, string HMaker, long HStockOrgID, string sErrMsg) {
            this.get_SourceBarCode_SellOutBackAsync(HInterID, HBillNo, HBillType, HSourceBillNo, HSourceBillType, HMaker, HStockOrgID, sErrMsg, null);
        }
        /// <remarks/>
        public void get_SourceBarCode_SellOutBackAsync(long HInterID, string HBillNo, string HBillType, string HSourceBillNo, string HSourceBillType, string HMaker, long HStockOrgID, string sErrMsg, object userState) {
            if ((this.get_SourceBarCode_SellOutBackOperationCompleted == null)) {
                this.get_SourceBarCode_SellOutBackOperationCompleted = new System.Threading.SendOrPostCallback(this.Onget_SourceBarCode_SellOutBackOperationCompleted);
            }
            this.InvokeAsync("get_SourceBarCode_SellOutBack", new object[] {
                        HInterID,
                        HBillNo,
                        HBillType,
                        HSourceBillNo,
                        HSourceBillType,
                        HMaker,
                        HStockOrgID,
                        sErrMsg}, this.get_SourceBarCode_SellOutBackOperationCompleted, userState);
        }
        private void Onget_SourceBarCode_SellOutBackOperationCompleted(object arg) {
            if ((this.get_SourceBarCode_SellOutBackCompleted != null)) {
                System.Web.Services.Protocols.InvokeCompletedEventArgs invokeArgs = ((System.Web.Services.Protocols.InvokeCompletedEventArgs)(arg));
                this.get_SourceBarCode_SellOutBackCompleted(this, new get_SourceBarCode_SellOutBackCompletedEventArgs(invokeArgs.Results, invokeArgs.Error, invokeArgs.Cancelled, invokeArgs.UserState));
            }
        }
        
@@ -6837,6 +6925,37 @@
            if ((this.set_SavePonderationBillMain_Temp_BarCode_MouldCompleted != null)) {
                System.Web.Services.Protocols.InvokeCompletedEventArgs invokeArgs = ((System.Web.Services.Protocols.InvokeCompletedEventArgs)(arg));
                this.set_SavePonderationBillMain_Temp_BarCode_MouldCompleted(this, new set_SavePonderationBillMain_Temp_BarCode_MouldCompletedEventArgs(invokeArgs.Results, invokeArgs.Error, invokeArgs.Cancelled, invokeArgs.UserState));
            }
        }
        /// <remarks/>
        [System.Web.Services.Protocols.SoapDocumentMethodAttribute("http://tempuri.org/get_ORGANIZATIONS_UserByOrgRelation", RequestNamespace="http://tempuri.org/", ResponseNamespace="http://tempuri.org/", Use=System.Web.Services.Description.SoapBindingUse.Literal, ParameterStyle=System.Web.Services.Protocols.SoapParameterStyle.Wrapped)]
        public System.Data.DataSet get_ORGANIZATIONS_UserByOrgRelation(string HUserNumber, string HOrgName) {
            object[] results = this.Invoke("get_ORGANIZATIONS_UserByOrgRelation", new object[] {
                        HUserNumber,
                        HOrgName});
            return ((System.Data.DataSet)(results[0]));
        }
        /// <remarks/>
        public void get_ORGANIZATIONS_UserByOrgRelationAsync(string HUserNumber, string HOrgName) {
            this.get_ORGANIZATIONS_UserByOrgRelationAsync(HUserNumber, HOrgName, null);
        }
        /// <remarks/>
        public void get_ORGANIZATIONS_UserByOrgRelationAsync(string HUserNumber, string HOrgName, object userState) {
            if ((this.get_ORGANIZATIONS_UserByOrgRelationOperationCompleted == null)) {
                this.get_ORGANIZATIONS_UserByOrgRelationOperationCompleted = new System.Threading.SendOrPostCallback(this.Onget_ORGANIZATIONS_UserByOrgRelationOperationCompleted);
            }
            this.InvokeAsync("get_ORGANIZATIONS_UserByOrgRelation", new object[] {
                        HUserNumber,
                        HOrgName}, this.get_ORGANIZATIONS_UserByOrgRelationOperationCompleted, userState);
        }
        private void Onget_ORGANIZATIONS_UserByOrgRelationOperationCompleted(object arg) {
            if ((this.get_ORGANIZATIONS_UserByOrgRelationCompleted != null)) {
                System.Web.Services.Protocols.InvokeCompletedEventArgs invokeArgs = ((System.Web.Services.Protocols.InvokeCompletedEventArgs)(arg));
                this.get_ORGANIZATIONS_UserByOrgRelationCompleted(this, new get_ORGANIZATIONS_UserByOrgRelationCompletedEventArgs(invokeArgs.Results, invokeArgs.Error, invokeArgs.Cancelled, invokeArgs.UserState));
            }
        }
        
@@ -11001,46 +11120,34 @@
        }
        
        /// <remarks/>
        [System.Web.Services.Protocols.SoapDocumentMethodAttribute("http://tempuri.org/get_SourceBarCode_POStockInBack", RequestNamespace="http://tempuri.org/", ResponseNamespace="http://tempuri.org/", Use=System.Web.Services.Description.SoapBindingUse.Literal, ParameterStyle=System.Web.Services.Protocols.SoapParameterStyle.Wrapped)]
        public ClsKf_ICStockBill_WMS get_SourceBarCode_POStockInBack(long HInterID, string HBillNo, string HBillType, string HSourceBillNo, string HSourceBillType, string HMaker, long HStockOrgID, ref string sErrMsg) {
            object[] results = this.Invoke("get_SourceBarCode_POStockInBack", new object[] {
                        HInterID,
                        HBillNo,
                        HBillType,
                        HSourceBillNo,
                        HSourceBillType,
                        HMaker,
                        HStockOrgID,
        [System.Web.Services.Protocols.SoapDocumentMethodAttribute("http://tempuri.org/set_CheckEntrustInBill", RequestNamespace="http://tempuri.org/", ResponseNamespace="http://tempuri.org/", Use=System.Web.Services.Description.SoapBindingUse.Literal, ParameterStyle=System.Web.Services.Protocols.SoapParameterStyle.Wrapped)]
        public bool set_CheckEntrustInBill(ClsKf_EntrustInBillMain_K3 oMain, ref string sErrMsg) {
            object[] results = this.Invoke("set_CheckEntrustInBill", new object[] {
                        oMain,
                        sErrMsg});
            sErrMsg = ((string)(results[1]));
            return ((ClsKf_ICStockBill_WMS)(results[0]));
            return ((bool)(results[0]));
        }
        
        /// <remarks/>
        public void get_SourceBarCode_POStockInBackAsync(long HInterID, string HBillNo, string HBillType, string HSourceBillNo, string HSourceBillType, string HMaker, long HStockOrgID, string sErrMsg) {
            this.get_SourceBarCode_POStockInBackAsync(HInterID, HBillNo, HBillType, HSourceBillNo, HSourceBillType, HMaker, HStockOrgID, sErrMsg, null);
        public void set_CheckEntrustInBillAsync(ClsKf_EntrustInBillMain_K3 oMain, string sErrMsg) {
            this.set_CheckEntrustInBillAsync(oMain, sErrMsg, null);
        }
        
        /// <remarks/>
        public void get_SourceBarCode_POStockInBackAsync(long HInterID, string HBillNo, string HBillType, string HSourceBillNo, string HSourceBillType, string HMaker, long HStockOrgID, string sErrMsg, object userState) {
            if ((this.get_SourceBarCode_POStockInBackOperationCompleted == null)) {
                this.get_SourceBarCode_POStockInBackOperationCompleted = new System.Threading.SendOrPostCallback(this.Onget_SourceBarCode_POStockInBackOperationCompleted);
        public void set_CheckEntrustInBillAsync(ClsKf_EntrustInBillMain_K3 oMain, string sErrMsg, object userState) {
            if ((this.set_CheckEntrustInBillOperationCompleted == null)) {
                this.set_CheckEntrustInBillOperationCompleted = new System.Threading.SendOrPostCallback(this.Onset_CheckEntrustInBillOperationCompleted);
            }
            this.InvokeAsync("get_SourceBarCode_POStockInBack", new object[] {
                        HInterID,
                        HBillNo,
                        HBillType,
                        HSourceBillNo,
                        HSourceBillType,
                        HMaker,
                        HStockOrgID,
                        sErrMsg}, this.get_SourceBarCode_POStockInBackOperationCompleted, userState);
            this.InvokeAsync("set_CheckEntrustInBill", new object[] {
                        oMain,
                        sErrMsg}, this.set_CheckEntrustInBillOperationCompleted, userState);
        }
        
        private void Onget_SourceBarCode_POStockInBackOperationCompleted(object arg) {
            if ((this.get_SourceBarCode_POStockInBackCompleted != null)) {
        private void Onset_CheckEntrustInBillOperationCompleted(object arg) {
            if ((this.set_CheckEntrustInBillCompleted != null)) {
                System.Web.Services.Protocols.InvokeCompletedEventArgs invokeArgs = ((System.Web.Services.Protocols.InvokeCompletedEventArgs)(arg));
                this.get_SourceBarCode_POStockInBackCompleted(this, new get_SourceBarCode_POStockInBackCompletedEventArgs(invokeArgs.Results, invokeArgs.Error, invokeArgs.Cancelled, invokeArgs.UserState));
                this.set_CheckEntrustInBillCompleted(this, new set_CheckEntrustInBillCompletedEventArgs(invokeArgs.Results, invokeArgs.Error, invokeArgs.Cancelled, invokeArgs.UserState));
            }
        }
        
@@ -13274,33 +13381,36 @@
        }
        
        /// <remarks/>
        [System.Web.Services.Protocols.SoapDocumentMethodAttribute("http://tempuri.org/get_ORGANIZATIONS_UserByOrgRelation", RequestNamespace="http://tempuri.org/", ResponseNamespace="http://tempuri.org/", Use=System.Web.Services.Description.SoapBindingUse.Literal, ParameterStyle=System.Web.Services.Protocols.SoapParameterStyle.Wrapped)]
        public System.Data.DataSet get_ORGANIZATIONS_UserByOrgRelation(string HUserNumber, string HOrgName) {
            object[] results = this.Invoke("get_ORGANIZATIONS_UserByOrgRelation", new object[] {
                        HUserNumber,
                        HOrgName});
            return ((System.Data.DataSet)(results[0]));
        [System.Web.Services.Protocols.SoapDocumentMethodAttribute("http://tempuri.org/set_SaveEntrustOutBill_New", RequestNamespace="http://tempuri.org/", ResponseNamespace="http://tempuri.org/", Use=System.Web.Services.Description.SoapBindingUse.Literal, ParameterStyle=System.Web.Services.Protocols.SoapParameterStyle.Wrapped)]
        public bool set_SaveEntrustOutBill_New(ClsKf_EntrustOutBillMain oMain, string sHSourceType, ref string sErrMsg) {
            object[] results = this.Invoke("set_SaveEntrustOutBill_New", new object[] {
                        oMain,
                        sHSourceType,
                        sErrMsg});
            sErrMsg = ((string)(results[1]));
            return ((bool)(results[0]));
        }
        
        /// <remarks/>
        public void get_ORGANIZATIONS_UserByOrgRelationAsync(string HUserNumber, string HOrgName) {
            this.get_ORGANIZATIONS_UserByOrgRelationAsync(HUserNumber, HOrgName, null);
        public void set_SaveEntrustOutBill_NewAsync(ClsKf_EntrustOutBillMain oMain, string sHSourceType, string sErrMsg) {
            this.set_SaveEntrustOutBill_NewAsync(oMain, sHSourceType, sErrMsg, null);
        }
        
        /// <remarks/>
        public void get_ORGANIZATIONS_UserByOrgRelationAsync(string HUserNumber, string HOrgName, object userState) {
            if ((this.get_ORGANIZATIONS_UserByOrgRelationOperationCompleted == null)) {
                this.get_ORGANIZATIONS_UserByOrgRelationOperationCompleted = new System.Threading.SendOrPostCallback(this.Onget_ORGANIZATIONS_UserByOrgRelationOperationCompleted);
        public void set_SaveEntrustOutBill_NewAsync(ClsKf_EntrustOutBillMain oMain, string sHSourceType, string sErrMsg, object userState) {
            if ((this.set_SaveEntrustOutBill_NewOperationCompleted == null)) {
                this.set_SaveEntrustOutBill_NewOperationCompleted = new System.Threading.SendOrPostCallback(this.Onset_SaveEntrustOutBill_NewOperationCompleted);
            }
            this.InvokeAsync("get_ORGANIZATIONS_UserByOrgRelation", new object[] {
                        HUserNumber,
                        HOrgName}, this.get_ORGANIZATIONS_UserByOrgRelationOperationCompleted, userState);
            this.InvokeAsync("set_SaveEntrustOutBill_New", new object[] {
                        oMain,
                        sHSourceType,
                        sErrMsg}, this.set_SaveEntrustOutBill_NewOperationCompleted, userState);
        }
        
        private void Onget_ORGANIZATIONS_UserByOrgRelationOperationCompleted(object arg) {
            if ((this.get_ORGANIZATIONS_UserByOrgRelationCompleted != null)) {
        private void Onset_SaveEntrustOutBill_NewOperationCompleted(object arg) {
            if ((this.set_SaveEntrustOutBill_NewCompleted != null)) {
                System.Web.Services.Protocols.InvokeCompletedEventArgs invokeArgs = ((System.Web.Services.Protocols.InvokeCompletedEventArgs)(arg));
                this.get_ORGANIZATIONS_UserByOrgRelationCompleted(this, new get_ORGANIZATIONS_UserByOrgRelationCompletedEventArgs(invokeArgs.Results, invokeArgs.Error, invokeArgs.Cancelled, invokeArgs.UserState));
                this.set_SaveEntrustOutBill_NewCompleted(this, new set_SaveEntrustOutBill_NewCompletedEventArgs(invokeArgs.Results, invokeArgs.Error, invokeArgs.Cancelled, invokeArgs.UserState));
            }
        }
        
@@ -14900,34 +15010,38 @@
        }
        
        /// <remarks/>
        [System.Web.Services.Protocols.SoapDocumentMethodAttribute("http://tempuri.org/set_CheckEntrustInBill", RequestNamespace="http://tempuri.org/", ResponseNamespace="http://tempuri.org/", Use=System.Web.Services.Description.SoapBindingUse.Literal, ParameterStyle=System.Web.Services.Protocols.SoapParameterStyle.Wrapped)]
        public bool set_CheckEntrustInBill(ClsKf_EntrustInBillMain_K3 oMain, ref string sErrMsg) {
            object[] results = this.Invoke("set_CheckEntrustInBill", new object[] {
        [System.Web.Services.Protocols.SoapDocumentMethodAttribute("http://tempuri.org/set_SaveMoveStockStepOutBill_CLD_New", RequestNamespace="http://tempuri.org/", ResponseNamespace="http://tempuri.org/", Use=System.Web.Services.Description.SoapBindingUse.Literal, ParameterStyle=System.Web.Services.Protocols.SoapParameterStyle.Wrapped)]
        public bool set_SaveMoveStockStepOutBill_CLD_New(ClsKf_MoveStockStepOutBillMain oMain, string sHSourceType, ClsXt_SystemParameterMain oSystemParameterMain, ref string sErrMsg) {
            object[] results = this.Invoke("set_SaveMoveStockStepOutBill_CLD_New", new object[] {
                        oMain,
                        sHSourceType,
                        oSystemParameterMain,
                        sErrMsg});
            sErrMsg = ((string)(results[1]));
            return ((bool)(results[0]));
        }
        
        /// <remarks/>
        public void set_CheckEntrustInBillAsync(ClsKf_EntrustInBillMain_K3 oMain, string sErrMsg) {
            this.set_CheckEntrustInBillAsync(oMain, sErrMsg, null);
        public void set_SaveMoveStockStepOutBill_CLD_NewAsync(ClsKf_MoveStockStepOutBillMain oMain, string sHSourceType, ClsXt_SystemParameterMain oSystemParameterMain, string sErrMsg) {
            this.set_SaveMoveStockStepOutBill_CLD_NewAsync(oMain, sHSourceType, oSystemParameterMain, sErrMsg, null);
        }
        
        /// <remarks/>
        public void set_CheckEntrustInBillAsync(ClsKf_EntrustInBillMain_K3 oMain, string sErrMsg, object userState) {
            if ((this.set_CheckEntrustInBillOperationCompleted == null)) {
                this.set_CheckEntrustInBillOperationCompleted = new System.Threading.SendOrPostCallback(this.Onset_CheckEntrustInBillOperationCompleted);
        public void set_SaveMoveStockStepOutBill_CLD_NewAsync(ClsKf_MoveStockStepOutBillMain oMain, string sHSourceType, ClsXt_SystemParameterMain oSystemParameterMain, string sErrMsg, object userState) {
            if ((this.set_SaveMoveStockStepOutBill_CLD_NewOperationCompleted == null)) {
                this.set_SaveMoveStockStepOutBill_CLD_NewOperationCompleted = new System.Threading.SendOrPostCallback(this.Onset_SaveMoveStockStepOutBill_CLD_NewOperationCompleted);
            }
            this.InvokeAsync("set_CheckEntrustInBill", new object[] {
            this.InvokeAsync("set_SaveMoveStockStepOutBill_CLD_New", new object[] {
                        oMain,
                        sErrMsg}, this.set_CheckEntrustInBillOperationCompleted, userState);
                        sHSourceType,
                        oSystemParameterMain,
                        sErrMsg}, this.set_SaveMoveStockStepOutBill_CLD_NewOperationCompleted, userState);
        }
        
        private void Onset_CheckEntrustInBillOperationCompleted(object arg) {
            if ((this.set_CheckEntrustInBillCompleted != null)) {
        private void Onset_SaveMoveStockStepOutBill_CLD_NewOperationCompleted(object arg) {
            if ((this.set_SaveMoveStockStepOutBill_CLD_NewCompleted != null)) {
                System.Web.Services.Protocols.InvokeCompletedEventArgs invokeArgs = ((System.Web.Services.Protocols.InvokeCompletedEventArgs)(arg));
                this.set_CheckEntrustInBillCompleted(this, new set_CheckEntrustInBillCompletedEventArgs(invokeArgs.Results, invokeArgs.Error, invokeArgs.Cancelled, invokeArgs.UserState));
                this.set_SaveMoveStockStepOutBill_CLD_NewCompleted(this, new set_SaveMoveStockStepOutBill_CLD_NewCompletedEventArgs(invokeArgs.Results, invokeArgs.Error, invokeArgs.Cancelled, invokeArgs.UserState));
            }
        }
        
@@ -16581,40 +16695,6 @@
            if ((this.GetKf_EntrustOutBill_K3_SourceCompleted != null)) {
                System.Web.Services.Protocols.InvokeCompletedEventArgs invokeArgs = ((System.Web.Services.Protocols.InvokeCompletedEventArgs)(arg));
                this.GetKf_EntrustOutBill_K3_SourceCompleted(this, new GetKf_EntrustOutBill_K3_SourceCompletedEventArgs(invokeArgs.Results, invokeArgs.Error, invokeArgs.Cancelled, invokeArgs.UserState));
            }
        }
        /// <remarks/>
        [System.Web.Services.Protocols.SoapDocumentMethodAttribute("http://tempuri.org/set_SaveEntrustOutBill_New", RequestNamespace="http://tempuri.org/", ResponseNamespace="http://tempuri.org/", Use=System.Web.Services.Description.SoapBindingUse.Literal, ParameterStyle=System.Web.Services.Protocols.SoapParameterStyle.Wrapped)]
        public bool set_SaveEntrustOutBill_New(ClsKf_EntrustOutBillMain oMain, string sHSourceType, ref string sErrMsg) {
            object[] results = this.Invoke("set_SaveEntrustOutBill_New", new object[] {
                        oMain,
                        sHSourceType,
                        sErrMsg});
            sErrMsg = ((string)(results[1]));
            return ((bool)(results[0]));
        }
        /// <remarks/>
        public void set_SaveEntrustOutBill_NewAsync(ClsKf_EntrustOutBillMain oMain, string sHSourceType, string sErrMsg) {
            this.set_SaveEntrustOutBill_NewAsync(oMain, sHSourceType, sErrMsg, null);
        }
        /// <remarks/>
        public void set_SaveEntrustOutBill_NewAsync(ClsKf_EntrustOutBillMain oMain, string sHSourceType, string sErrMsg, object userState) {
            if ((this.set_SaveEntrustOutBill_NewOperationCompleted == null)) {
                this.set_SaveEntrustOutBill_NewOperationCompleted = new System.Threading.SendOrPostCallback(this.Onset_SaveEntrustOutBill_NewOperationCompleted);
            }
            this.InvokeAsync("set_SaveEntrustOutBill_New", new object[] {
                        oMain,
                        sHSourceType,
                        sErrMsg}, this.set_SaveEntrustOutBill_NewOperationCompleted, userState);
        }
        private void Onset_SaveEntrustOutBill_NewOperationCompleted(object arg) {
            if ((this.set_SaveEntrustOutBill_NewCompleted != null)) {
                System.Web.Services.Protocols.InvokeCompletedEventArgs invokeArgs = ((System.Web.Services.Protocols.InvokeCompletedEventArgs)(arg));
                this.set_SaveEntrustOutBill_NewCompleted(this, new set_SaveEntrustOutBill_NewCompletedEventArgs(invokeArgs.Results, invokeArgs.Error, invokeArgs.Cancelled, invokeArgs.UserState));
            }
        }
        
@@ -19163,38 +19243,6 @@
        }
        
        /// <remarks/>
        [System.Web.Services.Protocols.SoapDocumentMethodAttribute("http://tempuri.org/set_SaveMoveStockBill_CLD_BillCheck", RequestNamespace="http://tempuri.org/", ResponseNamespace="http://tempuri.org/", Use=System.Web.Services.Description.SoapBindingUse.Literal, ParameterStyle=System.Web.Services.Protocols.SoapParameterStyle.Wrapped)]
        public bool set_SaveMoveStockBill_CLD_BillCheck(ClsKf_MoveStockBillMain oMain, ref string sErrMsg) {
            object[] results = this.Invoke("set_SaveMoveStockBill_CLD_BillCheck", new object[] {
                        oMain,
                        sErrMsg});
            sErrMsg = ((string)(results[1]));
            return ((bool)(results[0]));
        }
        /// <remarks/>
        public void set_SaveMoveStockBill_CLD_BillCheckAsync(ClsKf_MoveStockBillMain oMain, string sErrMsg) {
            this.set_SaveMoveStockBill_CLD_BillCheckAsync(oMain, sErrMsg, null);
        }
        /// <remarks/>
        public void set_SaveMoveStockBill_CLD_BillCheckAsync(ClsKf_MoveStockBillMain oMain, string sErrMsg, object userState) {
            if ((this.set_SaveMoveStockBill_CLD_BillCheckOperationCompleted == null)) {
                this.set_SaveMoveStockBill_CLD_BillCheckOperationCompleted = new System.Threading.SendOrPostCallback(this.Onset_SaveMoveStockBill_CLD_BillCheckOperationCompleted);
            }
            this.InvokeAsync("set_SaveMoveStockBill_CLD_BillCheck", new object[] {
                        oMain,
                        sErrMsg}, this.set_SaveMoveStockBill_CLD_BillCheckOperationCompleted, userState);
        }
        private void Onset_SaveMoveStockBill_CLD_BillCheckOperationCompleted(object arg) {
            if ((this.set_SaveMoveStockBill_CLD_BillCheckCompleted != null)) {
                System.Web.Services.Protocols.InvokeCompletedEventArgs invokeArgs = ((System.Web.Services.Protocols.InvokeCompletedEventArgs)(arg));
                this.set_SaveMoveStockBill_CLD_BillCheckCompleted(this, new set_SaveMoveStockBill_CLD_BillCheckCompletedEventArgs(invokeArgs.Results, invokeArgs.Error, invokeArgs.Cancelled, invokeArgs.UserState));
            }
        }
        /// <remarks/>
        [System.Web.Services.Protocols.SoapDocumentMethodAttribute("http://tempuri.org/set_SaveMoveStockStepOutBill_New", RequestNamespace="http://tempuri.org/", ResponseNamespace="http://tempuri.org/", Use=System.Web.Services.Description.SoapBindingUse.Literal, ParameterStyle=System.Web.Services.Protocols.SoapParameterStyle.Wrapped)]
        public bool set_SaveMoveStockStepOutBill_New(ClsKf_MoveStockStepOutBillMain oMain, string sHSourceType, ref string sErrMsg) {
            object[] results = this.Invoke("set_SaveMoveStockStepOutBill_New", new object[] {
@@ -19225,42 +19273,6 @@
            if ((this.set_SaveMoveStockStepOutBill_NewCompleted != null)) {
                System.Web.Services.Protocols.InvokeCompletedEventArgs invokeArgs = ((System.Web.Services.Protocols.InvokeCompletedEventArgs)(arg));
                this.set_SaveMoveStockStepOutBill_NewCompleted(this, new set_SaveMoveStockStepOutBill_NewCompletedEventArgs(invokeArgs.Results, invokeArgs.Error, invokeArgs.Cancelled, invokeArgs.UserState));
            }
        }
        /// <remarks/>
        [System.Web.Services.Protocols.SoapDocumentMethodAttribute("http://tempuri.org/set_SaveMoveStockStepOutBill_CLD_New", RequestNamespace="http://tempuri.org/", ResponseNamespace="http://tempuri.org/", Use=System.Web.Services.Description.SoapBindingUse.Literal, ParameterStyle=System.Web.Services.Protocols.SoapParameterStyle.Wrapped)]
        public bool set_SaveMoveStockStepOutBill_CLD_New(ClsKf_MoveStockStepOutBillMain oMain, string sHSourceType, ClsXt_SystemParameterMain oSystemParameterMain, ref string sErrMsg) {
            object[] results = this.Invoke("set_SaveMoveStockStepOutBill_CLD_New", new object[] {
                        oMain,
                        sHSourceType,
                        oSystemParameterMain,
                        sErrMsg});
            sErrMsg = ((string)(results[1]));
            return ((bool)(results[0]));
        }
        /// <remarks/>
        public void set_SaveMoveStockStepOutBill_CLD_NewAsync(ClsKf_MoveStockStepOutBillMain oMain, string sHSourceType, ClsXt_SystemParameterMain oSystemParameterMain, string sErrMsg) {
            this.set_SaveMoveStockStepOutBill_CLD_NewAsync(oMain, sHSourceType, oSystemParameterMain, sErrMsg, null);
        }
        /// <remarks/>
        public void set_SaveMoveStockStepOutBill_CLD_NewAsync(ClsKf_MoveStockStepOutBillMain oMain, string sHSourceType, ClsXt_SystemParameterMain oSystemParameterMain, string sErrMsg, object userState) {
            if ((this.set_SaveMoveStockStepOutBill_CLD_NewOperationCompleted == null)) {
                this.set_SaveMoveStockStepOutBill_CLD_NewOperationCompleted = new System.Threading.SendOrPostCallback(this.Onset_SaveMoveStockStepOutBill_CLD_NewOperationCompleted);
            }
            this.InvokeAsync("set_SaveMoveStockStepOutBill_CLD_New", new object[] {
                        oMain,
                        sHSourceType,
                        oSystemParameterMain,
                        sErrMsg}, this.set_SaveMoveStockStepOutBill_CLD_NewOperationCompleted, userState);
        }
        private void Onset_SaveMoveStockStepOutBill_CLD_NewOperationCompleted(object arg) {
            if ((this.set_SaveMoveStockStepOutBill_CLD_NewCompleted != null)) {
                System.Web.Services.Protocols.InvokeCompletedEventArgs invokeArgs = ((System.Web.Services.Protocols.InvokeCompletedEventArgs)(arg));
                this.set_SaveMoveStockStepOutBill_CLD_NewCompleted(this, new set_SaveMoveStockStepOutBill_CLD_NewCompletedEventArgs(invokeArgs.Results, invokeArgs.Error, invokeArgs.Cancelled, invokeArgs.UserState));
            }
        }
        
@@ -36546,7 +36558,6 @@
    [System.Xml.Serialization.XmlIncludeAttribute(typeof(ClsSc_PackUnionBillMain))]
    [System.Xml.Serialization.XmlIncludeAttribute(typeof(ClsSc_PackDoubleBillMain))]
    [System.Xml.Serialization.XmlIncludeAttribute(typeof(ClsSc_PackSplitBillMain))]
    [System.Xml.Serialization.XmlIncludeAttribute(typeof(ClsKf_MoveStockStepOutBillMain))]
    [System.Xml.Serialization.XmlIncludeAttribute(typeof(ClsKf_MoveStockBillMain))]
    [System.Xml.Serialization.XmlIncludeAttribute(typeof(ClsSc_QualityReportBillMain))]
    [System.Xml.Serialization.XmlIncludeAttribute(typeof(ClsSc_ICMOReportBillMain))]
@@ -36560,6 +36571,7 @@
    [System.Xml.Serialization.XmlIncludeAttribute(typeof(ClsSc_StationInBillMain))]
    [System.Xml.Serialization.XmlIncludeAttribute(typeof(ClsKf_SellOutBillMain))]
    [System.Xml.Serialization.XmlIncludeAttribute(typeof(ClsKf_MoveStockStepInBillMain))]
    [System.Xml.Serialization.XmlIncludeAttribute(typeof(ClsKf_MoveStockStepOutBillMain))]
    [System.Xml.Serialization.XmlIncludeAttribute(typeof(ClsKf_ProductInBillMain_K3))]
    [System.Xml.Serialization.XmlIncludeAttribute(typeof(ClsKf_AGVRequestBillMain))]
    [System.Xml.Serialization.XmlIncludeAttribute(typeof(ClsKf_ProductInBillMain_CLD))]
@@ -37397,279 +37409,6 @@
            }
            set {
                this.hUnitIDField = value;
            }
        }
    }
    /// <remarks/>
    [System.CodeDom.Compiler.GeneratedCodeAttribute("System.Xml", "4.8.3752.0")]
    [System.SerializableAttribute()]
    [System.Diagnostics.DebuggerStepThroughAttribute()]
    [System.ComponentModel.DesignerCategoryAttribute("code")]
    [System.Xml.Serialization.XmlTypeAttribute(Namespace="http://tempuri.org/")]
    public partial class ClsKf_MoveStockStepOutBillMain : ClsXt_BaseBillMain {
        private long hSupIDField;
        private long hWHIDField;
        private long hSCWHIDField;
        private long hEmpIDField;
        private long hManagerIDField;
        private long hSecManagerIDField;
        private long hKeeperIDField;
        private long hDeptIDField;
        private string hExplanationField;
        private string hInnerBillNoField;
        private bool hRedBlueFlagField;
        private string hAddressField;
        private string hLinkManField;
        private string hLinkPhoneField;
        private long hConveyTypeIDField;
        private long hConveyCompIDField;
        private double hConveyMoneyField;
        private string hStockStyleField;
        private long hStockInOrgIDField;
        private long hStockOutOrgIDField;
        private long hSTOCKORGIDField;
        private long hOWNERIDField;
        /// <remarks/>
        public long HSupID {
            get {
                return this.hSupIDField;
            }
            set {
                this.hSupIDField = value;
            }
        }
        /// <remarks/>
        public long HWHID {
            get {
                return this.hWHIDField;
            }
            set {
                this.hWHIDField = value;
            }
        }
        /// <remarks/>
        public long HSCWHID {
            get {
                return this.hSCWHIDField;
            }
            set {
                this.hSCWHIDField = value;
            }
        }
        /// <remarks/>
        public long HEmpID {
            get {
                return this.hEmpIDField;
            }
            set {
                this.hEmpIDField = value;
            }
        }
        /// <remarks/>
        public long HManagerID {
            get {
                return this.hManagerIDField;
            }
            set {
                this.hManagerIDField = value;
            }
        }
        /// <remarks/>
        public long HSecManagerID {
            get {
                return this.hSecManagerIDField;
            }
            set {
                this.hSecManagerIDField = value;
            }
        }
        /// <remarks/>
        public long HKeeperID {
            get {
                return this.hKeeperIDField;
            }
            set {
                this.hKeeperIDField = value;
            }
        }
        /// <remarks/>
        public long HDeptID {
            get {
                return this.hDeptIDField;
            }
            set {
                this.hDeptIDField = value;
            }
        }
        /// <remarks/>
        public string HExplanation {
            get {
                return this.hExplanationField;
            }
            set {
                this.hExplanationField = value;
            }
        }
        /// <remarks/>
        public string HInnerBillNo {
            get {
                return this.hInnerBillNoField;
            }
            set {
                this.hInnerBillNoField = value;
            }
        }
        /// <remarks/>
        public bool HRedBlueFlag {
            get {
                return this.hRedBlueFlagField;
            }
            set {
                this.hRedBlueFlagField = value;
            }
        }
        /// <remarks/>
        public string HAddress {
            get {
                return this.hAddressField;
            }
            set {
                this.hAddressField = value;
            }
        }
        /// <remarks/>
        public string HLinkMan {
            get {
                return this.hLinkManField;
            }
            set {
                this.hLinkManField = value;
            }
        }
        /// <remarks/>
        public string HLinkPhone {
            get {
                return this.hLinkPhoneField;
            }
            set {
                this.hLinkPhoneField = value;
            }
        }
        /// <remarks/>
        public long HConveyTypeID {
            get {
                return this.hConveyTypeIDField;
            }
            set {
                this.hConveyTypeIDField = value;
            }
        }
        /// <remarks/>
        public long HConveyCompID {
            get {
                return this.hConveyCompIDField;
            }
            set {
                this.hConveyCompIDField = value;
            }
        }
        /// <remarks/>
        public double HConveyMoney {
            get {
                return this.hConveyMoneyField;
            }
            set {
                this.hConveyMoneyField = value;
            }
        }
        /// <remarks/>
        public string HStockStyle {
            get {
                return this.hStockStyleField;
            }
            set {
                this.hStockStyleField = value;
            }
        }
        /// <remarks/>
        public long HStockInOrgID {
            get {
                return this.hStockInOrgIDField;
            }
            set {
                this.hStockInOrgIDField = value;
            }
        }
        /// <remarks/>
        public long HStockOutOrgID {
            get {
                return this.hStockOutOrgIDField;
            }
            set {
                this.hStockOutOrgIDField = value;
            }
        }
        /// <remarks/>
        public long HSTOCKORGID {
            get {
                return this.hSTOCKORGIDField;
            }
            set {
                this.hSTOCKORGIDField = value;
            }
        }
        /// <remarks/>
        public long HOWNERID {
            get {
                return this.hOWNERIDField;
            }
            set {
                this.hOWNERIDField = value;
            }
        }
    }
@@ -39985,6 +39724,279 @@
    [System.ComponentModel.DesignerCategoryAttribute("code")]
    [System.Xml.Serialization.XmlTypeAttribute(Namespace="http://tempuri.org/")]
    public partial class ClsKf_MoveStockStepInBillMain : ClsXt_BaseBillMain {
        private long hSupIDField;
        private long hWHIDField;
        private long hSCWHIDField;
        private long hEmpIDField;
        private long hManagerIDField;
        private long hSecManagerIDField;
        private long hKeeperIDField;
        private long hDeptIDField;
        private string hExplanationField;
        private string hInnerBillNoField;
        private bool hRedBlueFlagField;
        private string hAddressField;
        private string hLinkManField;
        private string hLinkPhoneField;
        private long hConveyTypeIDField;
        private long hConveyCompIDField;
        private double hConveyMoneyField;
        private string hStockStyleField;
        private long hStockInOrgIDField;
        private long hStockOutOrgIDField;
        private long hSTOCKORGIDField;
        private long hOWNERIDField;
        /// <remarks/>
        public long HSupID {
            get {
                return this.hSupIDField;
            }
            set {
                this.hSupIDField = value;
            }
        }
        /// <remarks/>
        public long HWHID {
            get {
                return this.hWHIDField;
            }
            set {
                this.hWHIDField = value;
            }
        }
        /// <remarks/>
        public long HSCWHID {
            get {
                return this.hSCWHIDField;
            }
            set {
                this.hSCWHIDField = value;
            }
        }
        /// <remarks/>
        public long HEmpID {
            get {
                return this.hEmpIDField;
            }
            set {
                this.hEmpIDField = value;
            }
        }
        /// <remarks/>
        public long HManagerID {
            get {
                return this.hManagerIDField;
            }
            set {
                this.hManagerIDField = value;
            }
        }
        /// <remarks/>
        public long HSecManagerID {
            get {
                return this.hSecManagerIDField;
            }
            set {
                this.hSecManagerIDField = value;
            }
        }
        /// <remarks/>
        public long HKeeperID {
            get {
                return this.hKeeperIDField;
            }
            set {
                this.hKeeperIDField = value;
            }
        }
        /// <remarks/>
        public long HDeptID {
            get {
                return this.hDeptIDField;
            }
            set {
                this.hDeptIDField = value;
            }
        }
        /// <remarks/>
        public string HExplanation {
            get {
                return this.hExplanationField;
            }
            set {
                this.hExplanationField = value;
            }
        }
        /// <remarks/>
        public string HInnerBillNo {
            get {
                return this.hInnerBillNoField;
            }
            set {
                this.hInnerBillNoField = value;
            }
        }
        /// <remarks/>
        public bool HRedBlueFlag {
            get {
                return this.hRedBlueFlagField;
            }
            set {
                this.hRedBlueFlagField = value;
            }
        }
        /// <remarks/>
        public string HAddress {
            get {
                return this.hAddressField;
            }
            set {
                this.hAddressField = value;
            }
        }
        /// <remarks/>
        public string HLinkMan {
            get {
                return this.hLinkManField;
            }
            set {
                this.hLinkManField = value;
            }
        }
        /// <remarks/>
        public string HLinkPhone {
            get {
                return this.hLinkPhoneField;
            }
            set {
                this.hLinkPhoneField = value;
            }
        }
        /// <remarks/>
        public long HConveyTypeID {
            get {
                return this.hConveyTypeIDField;
            }
            set {
                this.hConveyTypeIDField = value;
            }
        }
        /// <remarks/>
        public long HConveyCompID {
            get {
                return this.hConveyCompIDField;
            }
            set {
                this.hConveyCompIDField = value;
            }
        }
        /// <remarks/>
        public double HConveyMoney {
            get {
                return this.hConveyMoneyField;
            }
            set {
                this.hConveyMoneyField = value;
            }
        }
        /// <remarks/>
        public string HStockStyle {
            get {
                return this.hStockStyleField;
            }
            set {
                this.hStockStyleField = value;
            }
        }
        /// <remarks/>
        public long HStockInOrgID {
            get {
                return this.hStockInOrgIDField;
            }
            set {
                this.hStockInOrgIDField = value;
            }
        }
        /// <remarks/>
        public long HStockOutOrgID {
            get {
                return this.hStockOutOrgIDField;
            }
            set {
                this.hStockOutOrgIDField = value;
            }
        }
        /// <remarks/>
        public long HSTOCKORGID {
            get {
                return this.hSTOCKORGIDField;
            }
            set {
                this.hSTOCKORGIDField = value;
            }
        }
        /// <remarks/>
        public long HOWNERID {
            get {
                return this.hOWNERIDField;
            }
            set {
                this.hOWNERIDField = value;
            }
        }
    }
    /// <remarks/>
    [System.CodeDom.Compiler.GeneratedCodeAttribute("System.Xml", "4.8.3752.0")]
    [System.SerializableAttribute()]
    [System.Diagnostics.DebuggerStepThroughAttribute()]
    [System.ComponentModel.DesignerCategoryAttribute("code")]
    [System.Xml.Serialization.XmlTypeAttribute(Namespace="http://tempuri.org/")]
    public partial class ClsKf_MoveStockStepOutBillMain : ClsXt_BaseBillMain {
        
        private long hSupIDField;
        
@@ -51243,6 +51255,40 @@
    
    /// <remarks/>
    [System.CodeDom.Compiler.GeneratedCodeAttribute("System.Web.Services", "4.8.3752.0")]
    public delegate void get_SourceBarCode_POStockInBackCompletedEventHandler(object sender, get_SourceBarCode_POStockInBackCompletedEventArgs e);
    /// <remarks/>
    [System.CodeDom.Compiler.GeneratedCodeAttribute("System.Web.Services", "4.8.3752.0")]
    [System.Diagnostics.DebuggerStepThroughAttribute()]
    [System.ComponentModel.DesignerCategoryAttribute("code")]
    public partial class get_SourceBarCode_POStockInBackCompletedEventArgs : System.ComponentModel.AsyncCompletedEventArgs {
        private object[] results;
        internal get_SourceBarCode_POStockInBackCompletedEventArgs(object[] results, System.Exception exception, bool cancelled, object userState) :
                base(exception, cancelled, userState) {
            this.results = results;
        }
        /// <remarks/>
        public ClsKf_ICStockBill_WMS Result {
            get {
                this.RaiseExceptionIfNecessary();
                return ((ClsKf_ICStockBill_WMS)(this.results[0]));
            }
        }
        /// <remarks/>
        public string sErrMsg {
            get {
                this.RaiseExceptionIfNecessary();
                return ((string)(this.results[1]));
            }
        }
    }
    /// <remarks/>
    [System.CodeDom.Compiler.GeneratedCodeAttribute("System.Web.Services", "4.8.3752.0")]
    public delegate void get_SourceBarCode_MateOutBackCompletedEventHandler(object sender, get_SourceBarCode_MateOutBackCompletedEventArgs e);
    
    /// <remarks/>
@@ -51254,6 +51300,40 @@
        private object[] results;
        
        internal get_SourceBarCode_MateOutBackCompletedEventArgs(object[] results, System.Exception exception, bool cancelled, object userState) : 
                base(exception, cancelled, userState) {
            this.results = results;
        }
        /// <remarks/>
        public ClsKf_ICStockBill_WMS Result {
            get {
                this.RaiseExceptionIfNecessary();
                return ((ClsKf_ICStockBill_WMS)(this.results[0]));
            }
        }
        /// <remarks/>
        public string sErrMsg {
            get {
                this.RaiseExceptionIfNecessary();
                return ((string)(this.results[1]));
            }
        }
    }
    /// <remarks/>
    [System.CodeDom.Compiler.GeneratedCodeAttribute("System.Web.Services", "4.8.3752.0")]
    public delegate void get_SourceBarCode_SellOutBackCompletedEventHandler(object sender, get_SourceBarCode_SellOutBackCompletedEventArgs e);
    /// <remarks/>
    [System.CodeDom.Compiler.GeneratedCodeAttribute("System.Web.Services", "4.8.3752.0")]
    [System.Diagnostics.DebuggerStepThroughAttribute()]
    [System.ComponentModel.DesignerCategoryAttribute("code")]
    public partial class get_SourceBarCode_SellOutBackCompletedEventArgs : System.ComponentModel.AsyncCompletedEventArgs {
        private object[] results;
        internal get_SourceBarCode_SellOutBackCompletedEventArgs(object[] results, System.Exception exception, bool cancelled, object userState) :
                base(exception, cancelled, userState) {
            this.results = results;
        }
@@ -54105,6 +54185,32 @@
            get {
                this.RaiseExceptionIfNecessary();
                return ((string)(this.results[7]));
            }
        }
    }
    /// <remarks/>
    [System.CodeDom.Compiler.GeneratedCodeAttribute("System.Web.Services", "4.8.3752.0")]
    public delegate void get_ORGANIZATIONS_UserByOrgRelationCompletedEventHandler(object sender, get_ORGANIZATIONS_UserByOrgRelationCompletedEventArgs e);
    /// <remarks/>
    [System.CodeDom.Compiler.GeneratedCodeAttribute("System.Web.Services", "4.8.3752.0")]
    [System.Diagnostics.DebuggerStepThroughAttribute()]
    [System.ComponentModel.DesignerCategoryAttribute("code")]
    public partial class get_ORGANIZATIONS_UserByOrgRelationCompletedEventArgs : System.ComponentModel.AsyncCompletedEventArgs {
        private object[] results;
        internal get_ORGANIZATIONS_UserByOrgRelationCompletedEventArgs(object[] results, System.Exception exception, bool cancelled, object userState) :
                base(exception, cancelled, userState) {
            this.results = results;
        }
        /// <remarks/>
        public System.Data.DataSet Result {
            get {
                this.RaiseExceptionIfNecessary();
                return ((System.Data.DataSet)(this.results[0]));
            }
        }
    }
@@ -57237,26 +57343,26 @@
    
    /// <remarks/>
    [System.CodeDom.Compiler.GeneratedCodeAttribute("System.Web.Services", "4.8.3752.0")]
    public delegate void get_SourceBarCode_POStockInBackCompletedEventHandler(object sender, get_SourceBarCode_POStockInBackCompletedEventArgs e);
    public delegate void set_CheckEntrustInBillCompletedEventHandler(object sender, set_CheckEntrustInBillCompletedEventArgs e);
    
    /// <remarks/>
    [System.CodeDom.Compiler.GeneratedCodeAttribute("System.Web.Services", "4.8.3752.0")]
    [System.Diagnostics.DebuggerStepThroughAttribute()]
    [System.ComponentModel.DesignerCategoryAttribute("code")]
    public partial class get_SourceBarCode_POStockInBackCompletedEventArgs : System.ComponentModel.AsyncCompletedEventArgs {
    public partial class set_CheckEntrustInBillCompletedEventArgs : System.ComponentModel.AsyncCompletedEventArgs {
        
        private object[] results;
        
        internal get_SourceBarCode_POStockInBackCompletedEventArgs(object[] results, System.Exception exception, bool cancelled, object userState) :
        internal set_CheckEntrustInBillCompletedEventArgs(object[] results, System.Exception exception, bool cancelled, object userState) :
                base(exception, cancelled, userState) {
            this.results = results;
        }
        
        /// <remarks/>
        public ClsKf_ICStockBill_WMS Result {
        public bool Result {
            get {
                this.RaiseExceptionIfNecessary();
                return ((ClsKf_ICStockBill_WMS)(this.results[0]));
                return ((bool)(this.results[0]));
            }
        }
        
@@ -59425,26 +59531,34 @@
    
    /// <remarks/>
    [System.CodeDom.Compiler.GeneratedCodeAttribute("System.Web.Services", "4.8.3752.0")]
    public delegate void get_ORGANIZATIONS_UserByOrgRelationCompletedEventHandler(object sender, get_ORGANIZATIONS_UserByOrgRelationCompletedEventArgs e);
    public delegate void set_SaveEntrustOutBill_NewCompletedEventHandler(object sender, set_SaveEntrustOutBill_NewCompletedEventArgs e);
    
    /// <remarks/>
    [System.CodeDom.Compiler.GeneratedCodeAttribute("System.Web.Services", "4.8.3752.0")]
    [System.Diagnostics.DebuggerStepThroughAttribute()]
    [System.ComponentModel.DesignerCategoryAttribute("code")]
    public partial class get_ORGANIZATIONS_UserByOrgRelationCompletedEventArgs : System.ComponentModel.AsyncCompletedEventArgs {
    public partial class set_SaveEntrustOutBill_NewCompletedEventArgs : System.ComponentModel.AsyncCompletedEventArgs {
        
        private object[] results;
        
        internal get_ORGANIZATIONS_UserByOrgRelationCompletedEventArgs(object[] results, System.Exception exception, bool cancelled, object userState) :
        internal set_SaveEntrustOutBill_NewCompletedEventArgs(object[] results, System.Exception exception, bool cancelled, object userState) :
                base(exception, cancelled, userState) {
            this.results = results;
        }
        
        /// <remarks/>
        public System.Data.DataSet Result {
        public bool Result {
            get {
                this.RaiseExceptionIfNecessary();
                return ((System.Data.DataSet)(this.results[0]));
                return ((bool)(this.results[0]));
            }
        }
        /// <remarks/>
        public string sErrMsg {
            get {
                this.RaiseExceptionIfNecessary();
                return ((string)(this.results[1]));
            }
        }
    }
@@ -61089,17 +61203,17 @@
    
    /// <remarks/>
    [System.CodeDom.Compiler.GeneratedCodeAttribute("System.Web.Services", "4.8.3752.0")]
    public delegate void set_CheckEntrustInBillCompletedEventHandler(object sender, set_CheckEntrustInBillCompletedEventArgs e);
    public delegate void set_SaveMoveStockStepOutBill_CLD_NewCompletedEventHandler(object sender, set_SaveMoveStockStepOutBill_CLD_NewCompletedEventArgs e);
    
    /// <remarks/>
    [System.CodeDom.Compiler.GeneratedCodeAttribute("System.Web.Services", "4.8.3752.0")]
    [System.Diagnostics.DebuggerStepThroughAttribute()]
    [System.ComponentModel.DesignerCategoryAttribute("code")]
    public partial class set_CheckEntrustInBillCompletedEventArgs : System.ComponentModel.AsyncCompletedEventArgs {
    public partial class set_SaveMoveStockStepOutBill_CLD_NewCompletedEventArgs : System.ComponentModel.AsyncCompletedEventArgs {
        
        private object[] results;
        
        internal set_CheckEntrustInBillCompletedEventArgs(object[] results, System.Exception exception, bool cancelled, object userState) :
        internal set_SaveMoveStockStepOutBill_CLD_NewCompletedEventArgs(object[] results, System.Exception exception, bool cancelled, object userState) :
                base(exception, cancelled, userState) {
            this.results = results;
        }
@@ -62743,40 +62857,6 @@
            get {
                this.RaiseExceptionIfNecessary();
                return ((System.Data.DataSet)(this.results[0]));
            }
        }
    }
    /// <remarks/>
    [System.CodeDom.Compiler.GeneratedCodeAttribute("System.Web.Services", "4.8.3752.0")]
    public delegate void set_SaveEntrustOutBill_NewCompletedEventHandler(object sender, set_SaveEntrustOutBill_NewCompletedEventArgs e);
    /// <remarks/>
    [System.CodeDom.Compiler.GeneratedCodeAttribute("System.Web.Services", "4.8.3752.0")]
    [System.Diagnostics.DebuggerStepThroughAttribute()]
    [System.ComponentModel.DesignerCategoryAttribute("code")]
    public partial class set_SaveEntrustOutBill_NewCompletedEventArgs : System.ComponentModel.AsyncCompletedEventArgs {
        private object[] results;
        internal set_SaveEntrustOutBill_NewCompletedEventArgs(object[] results, System.Exception exception, bool cancelled, object userState) :
                base(exception, cancelled, userState) {
            this.results = results;
        }
        /// <remarks/>
        public bool Result {
            get {
                this.RaiseExceptionIfNecessary();
                return ((bool)(this.results[0]));
            }
        }
        /// <remarks/>
        public string sErrMsg {
            get {
                this.RaiseExceptionIfNecessary();
                return ((string)(this.results[1]));
            }
        }
    }
@@ -64801,40 +64881,6 @@
    
    /// <remarks/>
    [System.CodeDom.Compiler.GeneratedCodeAttribute("System.Web.Services", "4.8.3752.0")]
    public delegate void set_SaveMoveStockBill_CLD_BillCheckCompletedEventHandler(object sender, set_SaveMoveStockBill_CLD_BillCheckCompletedEventArgs e);
    /// <remarks/>
    [System.CodeDom.Compiler.GeneratedCodeAttribute("System.Web.Services", "4.8.3752.0")]
    [System.Diagnostics.DebuggerStepThroughAttribute()]
    [System.ComponentModel.DesignerCategoryAttribute("code")]
    public partial class set_SaveMoveStockBill_CLD_BillCheckCompletedEventArgs : System.ComponentModel.AsyncCompletedEventArgs {
        private object[] results;
        internal set_SaveMoveStockBill_CLD_BillCheckCompletedEventArgs(object[] results, System.Exception exception, bool cancelled, object userState) :
                base(exception, cancelled, userState) {
            this.results = results;
        }
        /// <remarks/>
        public bool Result {
            get {
                this.RaiseExceptionIfNecessary();
                return ((bool)(this.results[0]));
            }
        }
        /// <remarks/>
        public string sErrMsg {
            get {
                this.RaiseExceptionIfNecessary();
                return ((string)(this.results[1]));
            }
        }
    }
    /// <remarks/>
    [System.CodeDom.Compiler.GeneratedCodeAttribute("System.Web.Services", "4.8.3752.0")]
    public delegate void set_SaveMoveStockStepOutBill_NewCompletedEventHandler(object sender, set_SaveMoveStockStepOutBill_NewCompletedEventArgs e);
    
    /// <remarks/>
@@ -64846,40 +64892,6 @@
        private object[] results;
        
        internal set_SaveMoveStockStepOutBill_NewCompletedEventArgs(object[] results, System.Exception exception, bool cancelled, object userState) : 
                base(exception, cancelled, userState) {
            this.results = results;
        }
        /// <remarks/>
        public bool Result {
            get {
                this.RaiseExceptionIfNecessary();
                return ((bool)(this.results[0]));
            }
        }
        /// <remarks/>
        public string sErrMsg {
            get {
                this.RaiseExceptionIfNecessary();
                return ((string)(this.results[1]));
            }
        }
    }
    /// <remarks/>
    [System.CodeDom.Compiler.GeneratedCodeAttribute("System.Web.Services", "4.8.3752.0")]
    public delegate void set_SaveMoveStockStepOutBill_CLD_NewCompletedEventHandler(object sender, set_SaveMoveStockStepOutBill_CLD_NewCompletedEventArgs e);
    /// <remarks/>
    [System.CodeDom.Compiler.GeneratedCodeAttribute("System.Web.Services", "4.8.3752.0")]
    [System.Diagnostics.DebuggerStepThroughAttribute()]
    [System.ComponentModel.DesignerCategoryAttribute("code")]
    public partial class set_SaveMoveStockStepOutBill_CLD_NewCompletedEventArgs : System.ComponentModel.AsyncCompletedEventArgs {
        private object[] results;
        internal set_SaveMoveStockStepOutBill_CLD_NewCompletedEventArgs(object[] results, System.Exception exception, bool cancelled, object userState) :
                base(exception, cancelled, userState) {
            this.results = results;
        }
WebAPI/Web References/WebS/WebService1.wsdl
@@ -2,7 +2,7 @@
<wsdl:definitions xmlns:soapenc="http://schemas.xmlsoap.org/soap/encoding/" xmlns:mime="http://schemas.xmlsoap.org/wsdl/mime/" xmlns:tns="http://tempuri.org/" xmlns:s="http://www.w3.org/2001/XMLSchema" xmlns:soap="http://schemas.xmlsoap.org/wsdl/soap/" xmlns:tm="http://microsoft.com/wsdl/mime/textMatching/" xmlns:http="http://schemas.xmlsoap.org/wsdl/http/" xmlns:soap12="http://schemas.xmlsoap.org/wsdl/soap12/" targetNamespace="http://tempuri.org/" xmlns:wsdl="http://schemas.xmlsoap.org/wsdl/">
  <wsdl:types>
    <s:schema elementFormDefault="qualified" targetNamespace="http://tempuri.org/">
      <s:element name="get_SourceBarCode_MateOutBack">
      <s:element name="get_SourceBarCode_POStockInBack">
        <s:complexType>
          <s:sequence>
            <s:element minOccurs="1" maxOccurs="1" name="HInterID" type="s:long" />
@@ -16,10 +16,10 @@
          </s:sequence>
        </s:complexType>
      </s:element>
      <s:element name="get_SourceBarCode_MateOutBackResponse">
      <s:element name="get_SourceBarCode_POStockInBackResponse">
        <s:complexType>
          <s:sequence>
            <s:element minOccurs="0" maxOccurs="1" name="get_SourceBarCode_MateOutBackResult" type="tns:ClsKf_ICStockBill_WMS" />
            <s:element minOccurs="0" maxOccurs="1" name="get_SourceBarCode_POStockInBackResult" type="tns:ClsKf_ICStockBill_WMS" />
            <s:element minOccurs="0" maxOccurs="1" name="sErrMsg" type="s:string" />
          </s:sequence>
        </s:complexType>
@@ -66,6 +66,50 @@
          <s:element minOccurs="1" maxOccurs="1" name="HSourceBarCodeFlag" type="s:boolean" />
        </s:sequence>
      </s:complexType>
      <s:element name="get_SourceBarCode_MateOutBack">
        <s:complexType>
          <s:sequence>
            <s:element minOccurs="1" maxOccurs="1" name="HInterID" type="s:long" />
            <s:element minOccurs="0" maxOccurs="1" name="HBillNo" type="s:string" />
            <s:element minOccurs="0" maxOccurs="1" name="HBillType" type="s:string" />
            <s:element minOccurs="0" maxOccurs="1" name="HSourceBillNo" type="s:string" />
            <s:element minOccurs="0" maxOccurs="1" name="HSourceBillType" type="s:string" />
            <s:element minOccurs="0" maxOccurs="1" name="HMaker" type="s:string" />
            <s:element minOccurs="1" maxOccurs="1" name="HStockOrgID" type="s:long" />
            <s:element minOccurs="0" maxOccurs="1" name="sErrMsg" type="s:string" />
          </s:sequence>
        </s:complexType>
      </s:element>
      <s:element name="get_SourceBarCode_MateOutBackResponse">
        <s:complexType>
          <s:sequence>
            <s:element minOccurs="0" maxOccurs="1" name="get_SourceBarCode_MateOutBackResult" type="tns:ClsKf_ICStockBill_WMS" />
            <s:element minOccurs="0" maxOccurs="1" name="sErrMsg" type="s:string" />
          </s:sequence>
        </s:complexType>
      </s:element>
      <s:element name="get_SourceBarCode_SellOutBack">
        <s:complexType>
          <s:sequence>
            <s:element minOccurs="1" maxOccurs="1" name="HInterID" type="s:long" />
            <s:element minOccurs="0" maxOccurs="1" name="HBillNo" type="s:string" />
            <s:element minOccurs="0" maxOccurs="1" name="HBillType" type="s:string" />
            <s:element minOccurs="0" maxOccurs="1" name="HSourceBillNo" type="s:string" />
            <s:element minOccurs="0" maxOccurs="1" name="HSourceBillType" type="s:string" />
            <s:element minOccurs="0" maxOccurs="1" name="HMaker" type="s:string" />
            <s:element minOccurs="1" maxOccurs="1" name="HStockOrgID" type="s:long" />
            <s:element minOccurs="0" maxOccurs="1" name="sErrMsg" type="s:string" />
          </s:sequence>
        </s:complexType>
      </s:element>
      <s:element name="get_SourceBarCode_SellOutBackResponse">
        <s:complexType>
          <s:sequence>
            <s:element minOccurs="0" maxOccurs="1" name="get_SourceBarCode_SellOutBackResult" type="tns:ClsKf_ICStockBill_WMS" />
            <s:element minOccurs="0" maxOccurs="1" name="sErrMsg" type="s:string" />
          </s:sequence>
        </s:complexType>
      </s:element>
      <s:element name="get_BarCode">
        <s:complexType>
          <s:sequence>
@@ -2603,6 +2647,28 @@
          </s:sequence>
        </s:complexType>
      </s:element>
      <s:element name="get_ORGANIZATIONS_UserByOrgRelation">
        <s:complexType>
          <s:sequence>
            <s:element minOccurs="0" maxOccurs="1" name="HUserNumber" type="s:string" />
            <s:element minOccurs="0" maxOccurs="1" name="HOrgName" type="s:string" />
          </s:sequence>
        </s:complexType>
      </s:element>
      <s:element name="get_ORGANIZATIONS_UserByOrgRelationResponse">
        <s:complexType>
          <s:sequence>
            <s:element minOccurs="0" maxOccurs="1" name="get_ORGANIZATIONS_UserByOrgRelationResult">
              <s:complexType>
                <s:sequence>
                  <s:element ref="s:schema" />
                  <s:any />
                </s:sequence>
              </s:complexType>
            </s:element>
          </s:sequence>
        </s:complexType>
      </s:element>
      <s:element name="get_ORGANIZATIONSIDByName">
        <s:complexType>
          <s:sequence>
@@ -4574,29 +4640,7 @@
          </s:sequence>
        </s:complexType>
      </s:element>
      <s:element name="get_SourceBarCode_POStockInBack">
        <s:complexType>
          <s:sequence>
            <s:element minOccurs="1" maxOccurs="1" name="HInterID" type="s:long" />
            <s:element minOccurs="0" maxOccurs="1" name="HBillNo" type="s:string" />
            <s:element minOccurs="0" maxOccurs="1" name="HBillType" type="s:string" />
            <s:element minOccurs="0" maxOccurs="1" name="HSourceBillNo" type="s:string" />
            <s:element minOccurs="0" maxOccurs="1" name="HSourceBillType" type="s:string" />
            <s:element minOccurs="0" maxOccurs="1" name="HMaker" type="s:string" />
            <s:element minOccurs="1" maxOccurs="1" name="HStockOrgID" type="s:long" />
            <s:element minOccurs="0" maxOccurs="1" name="sErrMsg" type="s:string" />
          </s:sequence>
        </s:complexType>
      </s:element>
      <s:element name="get_SourceBarCode_POStockInBackResponse">
        <s:complexType>
          <s:sequence>
            <s:element minOccurs="0" maxOccurs="1" name="get_SourceBarCode_POStockInBackResult" type="tns:ClsKf_ICStockBill_WMS" />
            <s:element minOccurs="0" maxOccurs="1" name="sErrMsg" type="s:string" />
          </s:sequence>
        </s:complexType>
      </s:element>
      <s:element name="set_AuditEntrustInBill">
      <s:element name="set_CheckEntrustInBill">
        <s:complexType>
          <s:sequence>
            <s:element minOccurs="0" maxOccurs="1" name="oMain" type="tns:ClsKf_EntrustInBillMain_K3" />
@@ -4628,6 +4672,22 @@
          </s:extension>
        </s:complexContent>
      </s:complexType>
      <s:element name="set_CheckEntrustInBillResponse">
        <s:complexType>
          <s:sequence>
            <s:element minOccurs="1" maxOccurs="1" name="set_CheckEntrustInBillResult" type="s:boolean" />
            <s:element minOccurs="0" maxOccurs="1" name="sErrMsg" type="s:string" />
          </s:sequence>
        </s:complexType>
      </s:element>
      <s:element name="set_AuditEntrustInBill">
        <s:complexType>
          <s:sequence>
            <s:element minOccurs="0" maxOccurs="1" name="oMain" type="tns:ClsKf_EntrustInBillMain_K3" />
            <s:element minOccurs="0" maxOccurs="1" name="sErrMsg" type="s:string" />
          </s:sequence>
        </s:complexType>
      </s:element>
      <s:element name="set_AuditEntrustInBillResponse">
        <s:complexType>
          <s:sequence>
@@ -6141,34 +6201,11 @@
          </s:sequence>
        </s:complexType>
      </s:element>
      <s:element name="get_ORGANIZATIONS_UserByOrgRelation">
        <s:complexType>
          <s:sequence>
            <s:element minOccurs="0" maxOccurs="1" name="HUserNumber" type="s:string" />
            <s:element minOccurs="0" maxOccurs="1" name="HOrgName" type="s:string" />
          </s:sequence>
        </s:complexType>
      </s:element>
      <s:element name="get_ORGANIZATIONS_UserByOrgRelationResponse">
        <s:complexType>
          <s:sequence>
            <s:element minOccurs="0" maxOccurs="1" name="get_ORGANIZATIONS_UserByOrgRelationResult">
              <s:complexType>
                <s:sequence>
                  <s:element ref="s:schema" />
                  <s:any />
                </s:sequence>
              </s:complexType>
            </s:element>
          </s:sequence>
        </s:complexType>
      </s:element>
      <s:element name="set_SaveEntrustOutBill_CLD_New">
      <s:element name="set_SaveEntrustOutBill_New">
        <s:complexType>
          <s:sequence>
            <s:element minOccurs="0" maxOccurs="1" name="oMain" type="tns:ClsKf_EntrustOutBillMain" />
            <s:element minOccurs="0" maxOccurs="1" name="sHSourceType" type="s:string" />
            <s:element minOccurs="0" maxOccurs="1" name="oSystemParameterMain" type="tns:ClsXt_SystemParameterMain" />
            <s:element minOccurs="0" maxOccurs="1" name="sErrMsg" type="s:string" />
          </s:sequence>
        </s:complexType>
@@ -6194,6 +6231,24 @@
          </s:extension>
        </s:complexContent>
      </s:complexType>
      <s:element name="set_SaveEntrustOutBill_NewResponse">
        <s:complexType>
          <s:sequence>
            <s:element minOccurs="1" maxOccurs="1" name="set_SaveEntrustOutBill_NewResult" type="s:boolean" />
            <s:element minOccurs="0" maxOccurs="1" name="sErrMsg" type="s:string" />
          </s:sequence>
        </s:complexType>
      </s:element>
      <s:element name="set_SaveEntrustOutBill_CLD_New">
        <s:complexType>
          <s:sequence>
            <s:element minOccurs="0" maxOccurs="1" name="oMain" type="tns:ClsKf_EntrustOutBillMain" />
            <s:element minOccurs="0" maxOccurs="1" name="sHSourceType" type="s:string" />
            <s:element minOccurs="0" maxOccurs="1" name="oSystemParameterMain" type="tns:ClsXt_SystemParameterMain" />
            <s:element minOccurs="0" maxOccurs="1" name="sErrMsg" type="s:string" />
          </s:sequence>
        </s:complexType>
      </s:element>
      <s:element name="set_SaveEntrustOutBill_CLD_NewResponse">
        <s:complexType>
          <s:sequence>
@@ -7153,18 +7208,50 @@
          </s:sequence>
        </s:complexType>
      </s:element>
      <s:element name="set_CheckEntrustInBill">
      <s:element name="set_SaveMoveStockStepOutBill_CLD_New">
        <s:complexType>
          <s:sequence>
            <s:element minOccurs="0" maxOccurs="1" name="oMain" type="tns:ClsKf_EntrustInBillMain_K3" />
            <s:element minOccurs="0" maxOccurs="1" name="oMain" type="tns:ClsKf_MoveStockStepOutBillMain" />
            <s:element minOccurs="0" maxOccurs="1" name="sHSourceType" type="s:string" />
            <s:element minOccurs="0" maxOccurs="1" name="oSystemParameterMain" type="tns:ClsXt_SystemParameterMain" />
            <s:element minOccurs="0" maxOccurs="1" name="sErrMsg" type="s:string" />
          </s:sequence>
        </s:complexType>
      </s:element>
      <s:element name="set_CheckEntrustInBillResponse">
      <s:complexType name="ClsKf_MoveStockStepOutBillMain">
        <s:complexContent mixed="false">
          <s:extension base="tns:ClsXt_BaseBillMain">
            <s:sequence>
              <s:element minOccurs="1" maxOccurs="1" name="HSupID" type="s:long" />
              <s:element minOccurs="1" maxOccurs="1" name="HWHID" type="s:long" />
              <s:element minOccurs="1" maxOccurs="1" name="HSCWHID" type="s:long" />
              <s:element minOccurs="1" maxOccurs="1" name="HEmpID" type="s:long" />
              <s:element minOccurs="1" maxOccurs="1" name="HManagerID" type="s:long" />
              <s:element minOccurs="1" maxOccurs="1" name="HSecManagerID" type="s:long" />
              <s:element minOccurs="1" maxOccurs="1" name="HKeeperID" type="s:long" />
              <s:element minOccurs="1" maxOccurs="1" name="HDeptID" type="s:long" />
              <s:element minOccurs="0" maxOccurs="1" name="HExplanation" type="s:string" />
              <s:element minOccurs="0" maxOccurs="1" name="HInnerBillNo" type="s:string" />
              <s:element minOccurs="1" maxOccurs="1" name="HRedBlueFlag" type="s:boolean" />
              <s:element minOccurs="0" maxOccurs="1" name="HAddress" type="s:string" />
              <s:element minOccurs="0" maxOccurs="1" name="HLinkMan" type="s:string" />
              <s:element minOccurs="0" maxOccurs="1" name="HLinkPhone" type="s:string" />
              <s:element minOccurs="1" maxOccurs="1" name="HConveyTypeID" type="s:long" />
              <s:element minOccurs="1" maxOccurs="1" name="HConveyCompID" type="s:long" />
              <s:element minOccurs="1" maxOccurs="1" name="HConveyMoney" type="s:double" />
              <s:element minOccurs="0" maxOccurs="1" name="HStockStyle" type="s:string" />
              <s:element minOccurs="1" maxOccurs="1" name="HStockInOrgID" type="s:long" />
              <s:element minOccurs="1" maxOccurs="1" name="HStockOutOrgID" type="s:long" />
              <s:element minOccurs="1" maxOccurs="1" name="HSTOCKORGID" type="s:long" />
              <s:element minOccurs="1" maxOccurs="1" name="HOWNERID" type="s:long" />
            </s:sequence>
          </s:extension>
        </s:complexContent>
      </s:complexType>
      <s:element name="set_SaveMoveStockStepOutBill_CLD_NewResponse">
        <s:complexType>
          <s:sequence>
            <s:element minOccurs="1" maxOccurs="1" name="set_CheckEntrustInBillResult" type="s:boolean" />
            <s:element minOccurs="1" maxOccurs="1" name="set_SaveMoveStockStepOutBill_CLD_NewResult" type="s:boolean" />
            <s:element minOccurs="0" maxOccurs="1" name="sErrMsg" type="s:string" />
          </s:sequence>
        </s:complexType>
@@ -8438,23 +8525,6 @@
                </s:sequence>
              </s:complexType>
            </s:element>
          </s:sequence>
        </s:complexType>
      </s:element>
      <s:element name="set_SaveEntrustOutBill_New">
        <s:complexType>
          <s:sequence>
            <s:element minOccurs="0" maxOccurs="1" name="oMain" type="tns:ClsKf_EntrustOutBillMain" />
            <s:element minOccurs="0" maxOccurs="1" name="sHSourceType" type="s:string" />
            <s:element minOccurs="0" maxOccurs="1" name="sErrMsg" type="s:string" />
          </s:sequence>
        </s:complexType>
      </s:element>
      <s:element name="set_SaveEntrustOutBill_NewResponse">
        <s:complexType>
          <s:sequence>
            <s:element minOccurs="1" maxOccurs="1" name="set_SaveEntrustOutBill_NewResult" type="s:boolean" />
            <s:element minOccurs="0" maxOccurs="1" name="sErrMsg" type="s:string" />
          </s:sequence>
        </s:complexType>
      </s:element>
@@ -10001,22 +10071,6 @@
          </s:sequence>
        </s:complexType>
      </s:element>
      <s:element name="set_SaveMoveStockBill_CLD_BillCheck">
        <s:complexType>
          <s:sequence>
            <s:element minOccurs="0" maxOccurs="1" name="oMain" type="tns:ClsKf_MoveStockBillMain" />
            <s:element minOccurs="0" maxOccurs="1" name="sErrMsg" type="s:string" />
          </s:sequence>
        </s:complexType>
      </s:element>
      <s:element name="set_SaveMoveStockBill_CLD_BillCheckResponse">
        <s:complexType>
          <s:sequence>
            <s:element minOccurs="1" maxOccurs="1" name="set_SaveMoveStockBill_CLD_BillCheckResult" type="s:boolean" />
            <s:element minOccurs="0" maxOccurs="1" name="sErrMsg" type="s:string" />
          </s:sequence>
        </s:complexType>
      </s:element>
      <s:element name="set_SaveMoveStockStepOutBill_New">
        <s:complexType>
          <s:sequence>
@@ -10026,58 +10080,10 @@
          </s:sequence>
        </s:complexType>
      </s:element>
      <s:complexType name="ClsKf_MoveStockStepOutBillMain">
        <s:complexContent mixed="false">
          <s:extension base="tns:ClsXt_BaseBillMain">
            <s:sequence>
              <s:element minOccurs="1" maxOccurs="1" name="HSupID" type="s:long" />
              <s:element minOccurs="1" maxOccurs="1" name="HWHID" type="s:long" />
              <s:element minOccurs="1" maxOccurs="1" name="HSCWHID" type="s:long" />
              <s:element minOccurs="1" maxOccurs="1" name="HEmpID" type="s:long" />
              <s:element minOccurs="1" maxOccurs="1" name="HManagerID" type="s:long" />
              <s:element minOccurs="1" maxOccurs="1" name="HSecManagerID" type="s:long" />
              <s:element minOccurs="1" maxOccurs="1" name="HKeeperID" type="s:long" />
              <s:element minOccurs="1" maxOccurs="1" name="HDeptID" type="s:long" />
              <s:element minOccurs="0" maxOccurs="1" name="HExplanation" type="s:string" />
              <s:element minOccurs="0" maxOccurs="1" name="HInnerBillNo" type="s:string" />
              <s:element minOccurs="1" maxOccurs="1" name="HRedBlueFlag" type="s:boolean" />
              <s:element minOccurs="0" maxOccurs="1" name="HAddress" type="s:string" />
              <s:element minOccurs="0" maxOccurs="1" name="HLinkMan" type="s:string" />
              <s:element minOccurs="0" maxOccurs="1" name="HLinkPhone" type="s:string" />
              <s:element minOccurs="1" maxOccurs="1" name="HConveyTypeID" type="s:long" />
              <s:element minOccurs="1" maxOccurs="1" name="HConveyCompID" type="s:long" />
              <s:element minOccurs="1" maxOccurs="1" name="HConveyMoney" type="s:double" />
              <s:element minOccurs="0" maxOccurs="1" name="HStockStyle" type="s:string" />
              <s:element minOccurs="1" maxOccurs="1" name="HStockInOrgID" type="s:long" />
              <s:element minOccurs="1" maxOccurs="1" name="HStockOutOrgID" type="s:long" />
              <s:element minOccurs="1" maxOccurs="1" name="HSTOCKORGID" type="s:long" />
              <s:element minOccurs="1" maxOccurs="1" name="HOWNERID" type="s:long" />
            </s:sequence>
          </s:extension>
        </s:complexContent>
      </s:complexType>
      <s:element name="set_SaveMoveStockStepOutBill_NewResponse">
        <s:complexType>
          <s:sequence>
            <s:element minOccurs="1" maxOccurs="1" name="set_SaveMoveStockStepOutBill_NewResult" type="s:boolean" />
            <s:element minOccurs="0" maxOccurs="1" name="sErrMsg" type="s:string" />
          </s:sequence>
        </s:complexType>
      </s:element>
      <s:element name="set_SaveMoveStockStepOutBill_CLD_New">
        <s:complexType>
          <s:sequence>
            <s:element minOccurs="0" maxOccurs="1" name="oMain" type="tns:ClsKf_MoveStockStepOutBillMain" />
            <s:element minOccurs="0" maxOccurs="1" name="sHSourceType" type="s:string" />
            <s:element minOccurs="0" maxOccurs="1" name="oSystemParameterMain" type="tns:ClsXt_SystemParameterMain" />
            <s:element minOccurs="0" maxOccurs="1" name="sErrMsg" type="s:string" />
          </s:sequence>
        </s:complexType>
      </s:element>
      <s:element name="set_SaveMoveStockStepOutBill_CLD_NewResponse">
        <s:complexType>
          <s:sequence>
            <s:element minOccurs="1" maxOccurs="1" name="set_SaveMoveStockStepOutBill_CLD_NewResult" type="s:boolean" />
            <s:element minOccurs="0" maxOccurs="1" name="sErrMsg" type="s:string" />
          </s:sequence>
        </s:complexType>
@@ -14169,11 +14175,23 @@
      </s:element>
    </s:schema>
  </wsdl:types>
  <wsdl:message name="get_SourceBarCode_POStockInBackSoapIn">
    <wsdl:part name="parameters" element="tns:get_SourceBarCode_POStockInBack" />
  </wsdl:message>
  <wsdl:message name="get_SourceBarCode_POStockInBackSoapOut">
    <wsdl:part name="parameters" element="tns:get_SourceBarCode_POStockInBackResponse" />
  </wsdl:message>
  <wsdl:message name="get_SourceBarCode_MateOutBackSoapIn">
    <wsdl:part name="parameters" element="tns:get_SourceBarCode_MateOutBack" />
  </wsdl:message>
  <wsdl:message name="get_SourceBarCode_MateOutBackSoapOut">
    <wsdl:part name="parameters" element="tns:get_SourceBarCode_MateOutBackResponse" />
  </wsdl:message>
  <wsdl:message name="get_SourceBarCode_SellOutBackSoapIn">
    <wsdl:part name="parameters" element="tns:get_SourceBarCode_SellOutBack" />
  </wsdl:message>
  <wsdl:message name="get_SourceBarCode_SellOutBackSoapOut">
    <wsdl:part name="parameters" element="tns:get_SourceBarCode_SellOutBackResponse" />
  </wsdl:message>
  <wsdl:message name="get_BarCodeSoapIn">
    <wsdl:part name="parameters" element="tns:get_BarCode" />
@@ -14660,6 +14678,12 @@
  </wsdl:message>
  <wsdl:message name="set_SavePonderationBillMain_Temp_BarCode_MouldSoapOut">
    <wsdl:part name="parameters" element="tns:set_SavePonderationBillMain_Temp_BarCode_MouldResponse" />
  </wsdl:message>
  <wsdl:message name="get_ORGANIZATIONS_UserByOrgRelationSoapIn">
    <wsdl:part name="parameters" element="tns:get_ORGANIZATIONS_UserByOrgRelation" />
  </wsdl:message>
  <wsdl:message name="get_ORGANIZATIONS_UserByOrgRelationSoapOut">
    <wsdl:part name="parameters" element="tns:get_ORGANIZATIONS_UserByOrgRelationResponse" />
  </wsdl:message>
  <wsdl:message name="get_ORGANIZATIONSIDByNameSoapIn">
    <wsdl:part name="parameters" element="tns:get_ORGANIZATIONSIDByName" />
@@ -15159,11 +15183,11 @@
  <wsdl:message name="get_SourceBarCode_MoveStockStepInSoapOut">
    <wsdl:part name="parameters" element="tns:get_SourceBarCode_MoveStockStepInResponse" />
  </wsdl:message>
  <wsdl:message name="get_SourceBarCode_POStockInBackSoapIn">
    <wsdl:part name="parameters" element="tns:get_SourceBarCode_POStockInBack" />
  <wsdl:message name="set_CheckEntrustInBillSoapIn">
    <wsdl:part name="parameters" element="tns:set_CheckEntrustInBill" />
  </wsdl:message>
  <wsdl:message name="get_SourceBarCode_POStockInBackSoapOut">
    <wsdl:part name="parameters" element="tns:get_SourceBarCode_POStockInBackResponse" />
  <wsdl:message name="set_CheckEntrustInBillSoapOut">
    <wsdl:part name="parameters" element="tns:set_CheckEntrustInBillResponse" />
  </wsdl:message>
  <wsdl:message name="set_AuditEntrustInBillSoapIn">
    <wsdl:part name="parameters" element="tns:set_AuditEntrustInBill" />
@@ -15555,11 +15579,11 @@
  <wsdl:message name="get_ORGANIZATIONSSoapOut">
    <wsdl:part name="parameters" element="tns:get_ORGANIZATIONSResponse" />
  </wsdl:message>
  <wsdl:message name="get_ORGANIZATIONS_UserByOrgRelationSoapIn">
    <wsdl:part name="parameters" element="tns:get_ORGANIZATIONS_UserByOrgRelation" />
  <wsdl:message name="set_SaveEntrustOutBill_NewSoapIn">
    <wsdl:part name="parameters" element="tns:set_SaveEntrustOutBill_New" />
  </wsdl:message>
  <wsdl:message name="get_ORGANIZATIONS_UserByOrgRelationSoapOut">
    <wsdl:part name="parameters" element="tns:get_ORGANIZATIONS_UserByOrgRelationResponse" />
  <wsdl:message name="set_SaveEntrustOutBill_NewSoapOut">
    <wsdl:part name="parameters" element="tns:set_SaveEntrustOutBill_NewResponse" />
  </wsdl:message>
  <wsdl:message name="set_SaveEntrustOutBill_CLD_NewSoapIn">
    <wsdl:part name="parameters" element="tns:set_SaveEntrustOutBill_CLD_New" />
@@ -15843,11 +15867,11 @@
  <wsdl:message name="set_CheckAddEntrustInBillSoapOut">
    <wsdl:part name="parameters" element="tns:set_CheckAddEntrustInBillResponse" />
  </wsdl:message>
  <wsdl:message name="set_CheckEntrustInBillSoapIn">
    <wsdl:part name="parameters" element="tns:set_CheckEntrustInBill" />
  <wsdl:message name="set_SaveMoveStockStepOutBill_CLD_NewSoapIn">
    <wsdl:part name="parameters" element="tns:set_SaveMoveStockStepOutBill_CLD_New" />
  </wsdl:message>
  <wsdl:message name="set_CheckEntrustInBillSoapOut">
    <wsdl:part name="parameters" element="tns:set_CheckEntrustInBillResponse" />
  <wsdl:message name="set_SaveMoveStockStepOutBill_CLD_NewSoapOut">
    <wsdl:part name="parameters" element="tns:set_SaveMoveStockStepOutBill_CLD_NewResponse" />
  </wsdl:message>
  <wsdl:message name="set_SaveMoveStockStepInBill_NewSoapIn">
    <wsdl:part name="parameters" element="tns:set_SaveMoveStockStepInBill_New" />
@@ -16142,12 +16166,6 @@
  </wsdl:message>
  <wsdl:message name="GetKf_EntrustOutBill_K3_SourceSoapOut">
    <wsdl:part name="parameters" element="tns:GetKf_EntrustOutBill_K3_SourceResponse" />
  </wsdl:message>
  <wsdl:message name="set_SaveEntrustOutBill_NewSoapIn">
    <wsdl:part name="parameters" element="tns:set_SaveEntrustOutBill_New" />
  </wsdl:message>
  <wsdl:message name="set_SaveEntrustOutBill_NewSoapOut">
    <wsdl:part name="parameters" element="tns:set_SaveEntrustOutBill_NewResponse" />
  </wsdl:message>
  <wsdl:message name="set_ClearPonderationBillMain_Temp_ChangGuiSoapIn">
    <wsdl:part name="parameters" element="tns:set_ClearPonderationBillMain_Temp_ChangGui" />
@@ -16539,23 +16557,11 @@
  <wsdl:message name="set_SaveMoveStockBill_BillCheckSoapOut">
    <wsdl:part name="parameters" element="tns:set_SaveMoveStockBill_BillCheckResponse" />
  </wsdl:message>
  <wsdl:message name="set_SaveMoveStockBill_CLD_BillCheckSoapIn">
    <wsdl:part name="parameters" element="tns:set_SaveMoveStockBill_CLD_BillCheck" />
  </wsdl:message>
  <wsdl:message name="set_SaveMoveStockBill_CLD_BillCheckSoapOut">
    <wsdl:part name="parameters" element="tns:set_SaveMoveStockBill_CLD_BillCheckResponse" />
  </wsdl:message>
  <wsdl:message name="set_SaveMoveStockStepOutBill_NewSoapIn">
    <wsdl:part name="parameters" element="tns:set_SaveMoveStockStepOutBill_New" />
  </wsdl:message>
  <wsdl:message name="set_SaveMoveStockStepOutBill_NewSoapOut">
    <wsdl:part name="parameters" element="tns:set_SaveMoveStockStepOutBill_NewResponse" />
  </wsdl:message>
  <wsdl:message name="set_SaveMoveStockStepOutBill_CLD_NewSoapIn">
    <wsdl:part name="parameters" element="tns:set_SaveMoveStockStepOutBill_CLD_New" />
  </wsdl:message>
  <wsdl:message name="set_SaveMoveStockStepOutBill_CLD_NewSoapOut">
    <wsdl:part name="parameters" element="tns:set_SaveMoveStockStepOutBill_CLD_NewResponse" />
  </wsdl:message>
  <wsdl:message name="GetSc_ICMOBillListSoapIn">
    <wsdl:part name="parameters" element="tns:GetSc_ICMOBillList" />
@@ -17578,9 +17584,17 @@
    <wsdl:part name="parameters" element="tns:GetSc_ICMOBackBillListResponse" />
  </wsdl:message>
  <wsdl:portType name="WebService1Soap">
    <wsdl:operation name="get_SourceBarCode_POStockInBack">
      <wsdl:input message="tns:get_SourceBarCode_POStockInBackSoapIn" />
      <wsdl:output message="tns:get_SourceBarCode_POStockInBackSoapOut" />
    </wsdl:operation>
    <wsdl:operation name="get_SourceBarCode_MateOutBack">
      <wsdl:input message="tns:get_SourceBarCode_MateOutBackSoapIn" />
      <wsdl:output message="tns:get_SourceBarCode_MateOutBackSoapOut" />
    </wsdl:operation>
    <wsdl:operation name="get_SourceBarCode_SellOutBack">
      <wsdl:input message="tns:get_SourceBarCode_SellOutBackSoapIn" />
      <wsdl:output message="tns:get_SourceBarCode_SellOutBackSoapOut" />
    </wsdl:operation>
    <wsdl:operation name="get_BarCode">
      <wsdl:input message="tns:get_BarCodeSoapIn" />
@@ -17905,6 +17919,10 @@
    <wsdl:operation name="set_SavePonderationBillMain_Temp_BarCode_Mould">
      <wsdl:input message="tns:set_SavePonderationBillMain_Temp_BarCode_MouldSoapIn" />
      <wsdl:output message="tns:set_SavePonderationBillMain_Temp_BarCode_MouldSoapOut" />
    </wsdl:operation>
    <wsdl:operation name="get_ORGANIZATIONS_UserByOrgRelation">
      <wsdl:input message="tns:get_ORGANIZATIONS_UserByOrgRelationSoapIn" />
      <wsdl:output message="tns:get_ORGANIZATIONS_UserByOrgRelationSoapOut" />
    </wsdl:operation>
    <wsdl:operation name="get_ORGANIZATIONSIDByName">
      <wsdl:input message="tns:get_ORGANIZATIONSIDByNameSoapIn" />
@@ -18238,9 +18256,9 @@
      <wsdl:input message="tns:get_SourceBarCode_MoveStockStepInSoapIn" />
      <wsdl:output message="tns:get_SourceBarCode_MoveStockStepInSoapOut" />
    </wsdl:operation>
    <wsdl:operation name="get_SourceBarCode_POStockInBack">
      <wsdl:input message="tns:get_SourceBarCode_POStockInBackSoapIn" />
      <wsdl:output message="tns:get_SourceBarCode_POStockInBackSoapOut" />
    <wsdl:operation name="set_CheckEntrustInBill">
      <wsdl:input message="tns:set_CheckEntrustInBillSoapIn" />
      <wsdl:output message="tns:set_CheckEntrustInBillSoapOut" />
    </wsdl:operation>
    <wsdl:operation name="set_AuditEntrustInBill">
      <wsdl:input message="tns:set_AuditEntrustInBillSoapIn" />
@@ -18502,9 +18520,9 @@
      <wsdl:input message="tns:get_ORGANIZATIONSSoapIn" />
      <wsdl:output message="tns:get_ORGANIZATIONSSoapOut" />
    </wsdl:operation>
    <wsdl:operation name="get_ORGANIZATIONS_UserByOrgRelation">
      <wsdl:input message="tns:get_ORGANIZATIONS_UserByOrgRelationSoapIn" />
      <wsdl:output message="tns:get_ORGANIZATIONS_UserByOrgRelationSoapOut" />
    <wsdl:operation name="set_SaveEntrustOutBill_New">
      <wsdl:input message="tns:set_SaveEntrustOutBill_NewSoapIn" />
      <wsdl:output message="tns:set_SaveEntrustOutBill_NewSoapOut" />
    </wsdl:operation>
    <wsdl:operation name="set_SaveEntrustOutBill_CLD_New">
      <wsdl:input message="tns:set_SaveEntrustOutBill_CLD_NewSoapIn" />
@@ -18694,9 +18712,9 @@
      <wsdl:input message="tns:set_CheckAddEntrustInBillSoapIn" />
      <wsdl:output message="tns:set_CheckAddEntrustInBillSoapOut" />
    </wsdl:operation>
    <wsdl:operation name="set_CheckEntrustInBill">
      <wsdl:input message="tns:set_CheckEntrustInBillSoapIn" />
      <wsdl:output message="tns:set_CheckEntrustInBillSoapOut" />
    <wsdl:operation name="set_SaveMoveStockStepOutBill_CLD_New">
      <wsdl:input message="tns:set_SaveMoveStockStepOutBill_CLD_NewSoapIn" />
      <wsdl:output message="tns:set_SaveMoveStockStepOutBill_CLD_NewSoapOut" />
    </wsdl:operation>
    <wsdl:operation name="set_SaveMoveStockStepInBill_New">
      <wsdl:input message="tns:set_SaveMoveStockStepInBill_NewSoapIn" />
@@ -18893,10 +18911,6 @@
    <wsdl:operation name="GetKf_EntrustOutBill_K3_Source">
      <wsdl:input message="tns:GetKf_EntrustOutBill_K3_SourceSoapIn" />
      <wsdl:output message="tns:GetKf_EntrustOutBill_K3_SourceSoapOut" />
    </wsdl:operation>
    <wsdl:operation name="set_SaveEntrustOutBill_New">
      <wsdl:input message="tns:set_SaveEntrustOutBill_NewSoapIn" />
      <wsdl:output message="tns:set_SaveEntrustOutBill_NewSoapOut" />
    </wsdl:operation>
    <wsdl:operation name="set_ClearPonderationBillMain_Temp_ChangGui">
      <wsdl:input message="tns:set_ClearPonderationBillMain_Temp_ChangGuiSoapIn" />
@@ -19158,17 +19172,9 @@
      <wsdl:input message="tns:set_SaveMoveStockBill_BillCheckSoapIn" />
      <wsdl:output message="tns:set_SaveMoveStockBill_BillCheckSoapOut" />
    </wsdl:operation>
    <wsdl:operation name="set_SaveMoveStockBill_CLD_BillCheck">
      <wsdl:input message="tns:set_SaveMoveStockBill_CLD_BillCheckSoapIn" />
      <wsdl:output message="tns:set_SaveMoveStockBill_CLD_BillCheckSoapOut" />
    </wsdl:operation>
    <wsdl:operation name="set_SaveMoveStockStepOutBill_New">
      <wsdl:input message="tns:set_SaveMoveStockStepOutBill_NewSoapIn" />
      <wsdl:output message="tns:set_SaveMoveStockStepOutBill_NewSoapOut" />
    </wsdl:operation>
    <wsdl:operation name="set_SaveMoveStockStepOutBill_CLD_New">
      <wsdl:input message="tns:set_SaveMoveStockStepOutBill_CLD_NewSoapIn" />
      <wsdl:output message="tns:set_SaveMoveStockStepOutBill_CLD_NewSoapOut" />
    </wsdl:operation>
    <wsdl:operation name="GetSc_ICMOBillList">
      <wsdl:input message="tns:GetSc_ICMOBillListSoapIn" />
@@ -19853,8 +19859,26 @@
  </wsdl:portType>
  <wsdl:binding name="WebService1Soap" type="tns:WebService1Soap">
    <soap:binding transport="http://schemas.xmlsoap.org/soap/http" />
    <wsdl:operation name="get_SourceBarCode_POStockInBack">
      <soap:operation soapAction="http://tempuri.org/get_SourceBarCode_POStockInBack" style="document" />
      <wsdl:input>
        <soap:body use="literal" />
      </wsdl:input>
      <wsdl:output>
        <soap:body use="literal" />
      </wsdl:output>
    </wsdl:operation>
    <wsdl:operation name="get_SourceBarCode_MateOutBack">
      <soap:operation soapAction="http://tempuri.org/get_SourceBarCode_MateOutBack" style="document" />
      <wsdl:input>
        <soap:body use="literal" />
      </wsdl:input>
      <wsdl:output>
        <soap:body use="literal" />
      </wsdl:output>
    </wsdl:operation>
    <wsdl:operation name="get_SourceBarCode_SellOutBack">
      <soap:operation soapAction="http://tempuri.org/get_SourceBarCode_SellOutBack" style="document" />
      <wsdl:input>
        <soap:body use="literal" />
      </wsdl:input>
@@ -20584,6 +20608,15 @@
    </wsdl:operation>
    <wsdl:operation name="set_SavePonderationBillMain_Temp_BarCode_Mould">
      <soap:operation soapAction="http://tempuri.org/set_SavePonderationBillMain_Temp_BarCode_Mould" style="document" />
      <wsdl:input>
        <soap:body use="literal" />
      </wsdl:input>
      <wsdl:output>
        <soap:body use="literal" />
      </wsdl:output>
    </wsdl:operation>
    <wsdl:operation name="get_ORGANIZATIONS_UserByOrgRelation">
      <soap:operation soapAction="http://tempuri.org/get_ORGANIZATIONS_UserByOrgRelation" style="document" />
      <wsdl:input>
        <soap:body use="literal" />
      </wsdl:input>
@@ -21338,8 +21371,8 @@
        <soap:body use="literal" />
      </wsdl:output>
    </wsdl:operation>
    <wsdl:operation name="get_SourceBarCode_POStockInBack">
      <soap:operation soapAction="http://tempuri.org/get_SourceBarCode_POStockInBack" style="document" />
    <wsdl:operation name="set_CheckEntrustInBill">
      <soap:operation soapAction="http://tempuri.org/set_CheckEntrustInBill" style="document" />
      <wsdl:input>
        <soap:body use="literal" />
      </wsdl:input>
@@ -21932,8 +21965,8 @@
        <soap:body use="literal" />
      </wsdl:output>
    </wsdl:operation>
    <wsdl:operation name="get_ORGANIZATIONS_UserByOrgRelation">
      <soap:operation soapAction="http://tempuri.org/get_ORGANIZATIONS_UserByOrgRelation" style="document" />
    <wsdl:operation name="set_SaveEntrustOutBill_New">
      <soap:operation soapAction="http://tempuri.org/set_SaveEntrustOutBill_New" style="document" />
      <wsdl:input>
        <soap:body use="literal" />
      </wsdl:input>
@@ -22364,8 +22397,8 @@
        <soap:body use="literal" />
      </wsdl:output>
    </wsdl:operation>
    <wsdl:operation name="set_CheckEntrustInBill">
      <soap:operation soapAction="http://tempuri.org/set_CheckEntrustInBill" style="document" />
    <wsdl:operation name="set_SaveMoveStockStepOutBill_CLD_New">
      <soap:operation soapAction="http://tempuri.org/set_SaveMoveStockStepOutBill_CLD_New" style="document" />
      <wsdl:input>
        <soap:body use="literal" />
      </wsdl:input>
@@ -22807,15 +22840,6 @@
    </wsdl:operation>
    <wsdl:operation name="GetKf_EntrustOutBill_K3_Source">
      <soap:operation soapAction="http://tempuri.org/GetKf_EntrustOutBill_K3_Source" style="document" />
      <wsdl:input>
        <soap:body use="literal" />
      </wsdl:input>
      <wsdl:output>
        <soap:body use="literal" />
      </wsdl:output>
    </wsdl:operation>
    <wsdl:operation name="set_SaveEntrustOutBill_New">
      <soap:operation soapAction="http://tempuri.org/set_SaveEntrustOutBill_New" style="document" />
      <wsdl:input>
        <soap:body use="literal" />
      </wsdl:input>
@@ -23408,26 +23432,8 @@
        <soap:body use="literal" />
      </wsdl:output>
    </wsdl:operation>
    <wsdl:operation name="set_SaveMoveStockBill_CLD_BillCheck">
      <soap:operation soapAction="http://tempuri.org/set_SaveMoveStockBill_CLD_BillCheck" style="document" />
      <wsdl:input>
        <soap:body use="literal" />
      </wsdl:input>
      <wsdl:output>
        <soap:body use="literal" />
      </wsdl:output>
    </wsdl:operation>
    <wsdl:operation name="set_SaveMoveStockStepOutBill_New">
      <soap:operation soapAction="http://tempuri.org/set_SaveMoveStockStepOutBill_New" style="document" />
      <wsdl:input>
        <soap:body use="literal" />
      </wsdl:input>
      <wsdl:output>
        <soap:body use="literal" />
      </wsdl:output>
    </wsdl:operation>
    <wsdl:operation name="set_SaveMoveStockStepOutBill_CLD_New">
      <soap:operation soapAction="http://tempuri.org/set_SaveMoveStockStepOutBill_CLD_New" style="document" />
      <wsdl:input>
        <soap:body use="literal" />
      </wsdl:input>
@@ -24968,8 +24974,26 @@
  </wsdl:binding>
  <wsdl:binding name="WebService1Soap12" type="tns:WebService1Soap">
    <soap12:binding transport="http://schemas.xmlsoap.org/soap/http" />
    <wsdl:operation name="get_SourceBarCode_POStockInBack">
      <soap12:operation soapAction="http://tempuri.org/get_SourceBarCode_POStockInBack" style="document" />
      <wsdl:input>
        <soap12:body use="literal" />
      </wsdl:input>
      <wsdl:output>
        <soap12:body use="literal" />
      </wsdl:output>
    </wsdl:operation>
    <wsdl:operation name="get_SourceBarCode_MateOutBack">
      <soap12:operation soapAction="http://tempuri.org/get_SourceBarCode_MateOutBack" style="document" />
      <wsdl:input>
        <soap12:body use="literal" />
      </wsdl:input>
      <wsdl:output>
        <soap12:body use="literal" />
      </wsdl:output>
    </wsdl:operation>
    <wsdl:operation name="get_SourceBarCode_SellOutBack">
      <soap12:operation soapAction="http://tempuri.org/get_SourceBarCode_SellOutBack" style="document" />
      <wsdl:input>
        <soap12:body use="literal" />
      </wsdl:input>
@@ -25699,6 +25723,15 @@
    </wsdl:operation>
    <wsdl:operation name="set_SavePonderationBillMain_Temp_BarCode_Mould">
      <soap12:operation soapAction="http://tempuri.org/set_SavePonderationBillMain_Temp_BarCode_Mould" style="document" />
      <wsdl:input>
        <soap12:body use="literal" />
      </wsdl:input>
      <wsdl:output>
        <soap12:body use="literal" />
      </wsdl:output>
    </wsdl:operation>
    <wsdl:operation name="get_ORGANIZATIONS_UserByOrgRelation">
      <soap12:operation soapAction="http://tempuri.org/get_ORGANIZATIONS_UserByOrgRelation" style="document" />
      <wsdl:input>
        <soap12:body use="literal" />
      </wsdl:input>
@@ -26453,8 +26486,8 @@
        <soap12:body use="literal" />
      </wsdl:output>
    </wsdl:operation>
    <wsdl:operation name="get_SourceBarCode_POStockInBack">
      <soap12:operation soapAction="http://tempuri.org/get_SourceBarCode_POStockInBack" style="document" />
    <wsdl:operation name="set_CheckEntrustInBill">
      <soap12:operation soapAction="http://tempuri.org/set_CheckEntrustInBill" style="document" />
      <wsdl:input>
        <soap12:body use="literal" />
      </wsdl:input>
@@ -27047,8 +27080,8 @@
        <soap12:body use="literal" />
      </wsdl:output>
    </wsdl:operation>
    <wsdl:operation name="get_ORGANIZATIONS_UserByOrgRelation">
      <soap12:operation soapAction="http://tempuri.org/get_ORGANIZATIONS_UserByOrgRelation" style="document" />
    <wsdl:operation name="set_SaveEntrustOutBill_New">
      <soap12:operation soapAction="http://tempuri.org/set_SaveEntrustOutBill_New" style="document" />
      <wsdl:input>
        <soap12:body use="literal" />
      </wsdl:input>
@@ -27479,8 +27512,8 @@
        <soap12:body use="literal" />
      </wsdl:output>
    </wsdl:operation>
    <wsdl:operation name="set_CheckEntrustInBill">
      <soap12:operation soapAction="http://tempuri.org/set_CheckEntrustInBill" style="document" />
    <wsdl:operation name="set_SaveMoveStockStepOutBill_CLD_New">
      <soap12:operation soapAction="http://tempuri.org/set_SaveMoveStockStepOutBill_CLD_New" style="document" />
      <wsdl:input>
        <soap12:body use="literal" />
      </wsdl:input>
@@ -27922,15 +27955,6 @@
    </wsdl:operation>
    <wsdl:operation name="GetKf_EntrustOutBill_K3_Source">
      <soap12:operation soapAction="http://tempuri.org/GetKf_EntrustOutBill_K3_Source" style="document" />
      <wsdl:input>
        <soap12:body use="literal" />
      </wsdl:input>
      <wsdl:output>
        <soap12:body use="literal" />
      </wsdl:output>
    </wsdl:operation>
    <wsdl:operation name="set_SaveEntrustOutBill_New">
      <soap12:operation soapAction="http://tempuri.org/set_SaveEntrustOutBill_New" style="document" />
      <wsdl:input>
        <soap12:body use="literal" />
      </wsdl:input>
@@ -28523,26 +28547,8 @@
        <soap12:body use="literal" />
      </wsdl:output>
    </wsdl:operation>
    <wsdl:operation name="set_SaveMoveStockBill_CLD_BillCheck">
      <soap12:operation soapAction="http://tempuri.org/set_SaveMoveStockBill_CLD_BillCheck" style="document" />
      <wsdl:input>
        <soap12:body use="literal" />
      </wsdl:input>
      <wsdl:output>
        <soap12:body use="literal" />
      </wsdl:output>
    </wsdl:operation>
    <wsdl:operation name="set_SaveMoveStockStepOutBill_New">
      <soap12:operation soapAction="http://tempuri.org/set_SaveMoveStockStepOutBill_New" style="document" />
      <wsdl:input>
        <soap12:body use="literal" />
      </wsdl:input>
      <wsdl:output>
        <soap12:body use="literal" />
      </wsdl:output>
    </wsdl:operation>
    <wsdl:operation name="set_SaveMoveStockStepOutBill_CLD_New">
      <soap12:operation soapAction="http://tempuri.org/set_SaveMoveStockStepOutBill_CLD_New" style="document" />
      <wsdl:input>
        <soap12:body use="literal" />
      </wsdl:input>
WebAPI/Web.config
@@ -35,7 +35,7 @@
        <!--<add key="sUrl" value="http://47.96.97.237/WEBS-WMS/WebService1.asmx"/> --> <!--测试服务器-->
        <!--<add key="surl" value="http://localhost:8082/webs/webservice1.asmx"/>    æœ¬åœ°-->
        <!--<add key="sUrl" value="http://192.168.110.57:81/WEBS/WebService1.asmx"/>-->    <!--陈雯静本地配置-->
        <add key="surl" value="http://localhost/webs-web/webservice1.asmx" /> <!--翁涛涛本地配置-->
        <!--<add key="surl" value="http://localhost/webs-web/webservice1.asmx" />--> <!--翁涛涛本地配置-->
        <!--<add key="sUrl" value="http://192.168.1.57:8082/WEBS-WMS/WebService1.asmx"/>九菱-->
        <!--<add key="sUrl" value="http://61.130.182.102:18181/WEBSCS/WebService1.asmx"/>--><!--斯莫尔-->
        
WebAPI/WebAPI.csproj
@@ -441,6 +441,7 @@
    <Compile Include="Controllers\CJGL\Sc_KeyElementBindingController.cs" />
    <Compile Include="Controllers\CJGL\Sc_OEEReportController.cs" />
    <Compile Include="Controllers\CKGL\TMZD\Gy_BarCodeBillListController.cs" />
    <Compile Include="Controllers\JHGL\Gy_SourceMouldBillController.cs" />
    <Compile Include="Controllers\Xt_DefineBillMainSetController.cs" />
    <Compile Include="Controllers\MJGL\Sc_MouldBatchWorkCheckBillController.cs" />
    <Compile Include="Controllers\SBGL\SBBB\Sb_EquipMentCollectionTechParamController.cs" />