Ejemplo n.º 1
0
        //}
        ///// <summary>
        ///// 电芯绑定到托盘
        ///// </summary>
        ///// <returns></returns>
        //public static miBindSFCintoTrayResponse BindingPalletAddress(string sfc)
        //{
        //    miBindSFCintoTrayResponse miBindSFCintoTrayResponseAddress = new miBindSFCintoTrayResponse();

        //    try
        //    {
        //        MiCheckProcessLotServiceClient Client = new MiCheckProcessLotServiceClient();
        //        var uname = Client.ClientCredentials.UserName;
        //        uname.UserName = ConfigureHelp.BindingPalletUser;// "SUP_TEST01";//用户
        //        uname.Password = ConfigureHelp.BindingPalletPassword; //"test12345";//密码
        //        MiBindSFCintoTrayServiceService MiBindSFCintoTrayServiceServiceAddress = new MiBindSFCintoTrayServiceService();
        //        miBindSFCintoTray miBindSFCintoTrayAddress = new miBindSFCintoTray();
        //        MiBindSFCintoTrayServiceServiceAddress.Url = "";
        //        miBindSFCintoTrayAddress.BindSFCintoTrayRequest.site = ConfigureHelp.BindingPalletSite;//所在的站点
        //        miBindSFCintoTrayAddress.BindSFCintoTrayRequest.mode = ND.BindingPallt.ModeTrayMatrix.COLUMNFIRST;//模式
        //        miBindSFCintoTrayAddress.BindSFCintoTrayRequest.position = ConfigureHelp.BindingPalletOperation;//所在的位置
        //        miBindSFCintoTrayAddress.BindSFCintoTrayRequest.trayId = ConfigureHelp.BindingPalletTrayId;//托盘号
        //        miBindSFCintoTrayAddress.BindSFCintoTrayRequest.sfc = sfc;//电芯号号
        //        miBindSFCintoTrayResponseAddress = MiBindSFCintoTrayServiceServiceAddress.miBindSFCintoTray(miBindSFCintoTrayAddress);
        //    }
        //    catch (Exception ex)
        //    {


        //    }
        //    return miBindSFCintoTrayResponseAddress;
        //}
        ///// <summary>
        ///// 获取托盘中的列表
        ///// </summary>
        ///// <returns></returns>
        //public static getCellListByTrayIdResponse ElectricCoreListAddress()
        //{
        //    getCellListByTrayIdResponse getCellListByTrayIdResponseAddress = new getCellListByTrayIdResponse();
        //    try
        //    {
        //        MiCheckProcessLotServiceClient Client = new MiCheckProcessLotServiceClient();
        //        var uname = Client.ClientCredentials.UserName;
        //        uname.UserName = ConfigureHelp.BindingPalletUser;// "SUP_TEST01";//用户
        //        uname.Password = ConfigureHelp.BindingPalletPassword; //"test12345";//密码
        //        CellTestIntegrationServiceService CellTestIntegrationServiceServiceAddress = new CellTestIntegrationServiceService();
        //        CellTestIntegrationServiceServiceAddress.Url = "";

        //        getCellListByTrayId getCellListByTrayIdAddress = new getCellListByTrayId();
        //        getCellListByTrayIdAddress.CellListRequest.site = "";//所在的站点
        //        getCellListByTrayIdAddress.CellListRequest.processLot = "";//托盘号
        //        getCellListByTrayIdAddress.CellListRequest.mode = ND.CoreList.ModeTrayMatrix.COLUMNFIRST;
        //        getCellListByTrayIdResponseAddress = CellTestIntegrationServiceServiceAddress.getCellListByTrayId(getCellListByTrayIdAddress);

        //    }
        //    catch (Exception ex)
        //    {

        //    }
        //    return getCellListByTrayIdResponseAddress;
        //}



        //
        /// <summary>
        ///  WebService接口参数配置:获取托盘中电芯列表
        /// </summary>
        /// <param name="barcode">小车条形码</param>
        /// <param name="resource">资源号</param>
        /// <param name="door">门</param>
        /// <returns></returns>
        public static getCellListByTrayIdResponse ChargeNumberAddess(string barcode, string resource, int door)
        {
            CellTestIntegrationServiceService cell    = new CellTestIntegrationServiceService();
            getCellListByTrayIdResponse       getCell = new getCellListByTrayIdResponse();

            try
            {
                cell.Url         = ConfigureHelp.ElectricCoreMES_WSDL;                                                                          //"http://172.26.11.3:50000/atlmeswebservice/CellTestIntegrationServiceService?wsdl";
                cell.Timeout     = ConfigureHelp.ElectricCoreTimeOut;                                                                           //超时时间
                cell.Credentials = new System.Net.NetworkCredential(ConfigureHelp.ElectricCoreUser, ConfigureHelp.ElectricCoretPassword, null); //Baiduhai7     //验证信息
                getCellListByTrayId getId = new getCellListByTrayId();

                cellListRequest cellListRequest = new cellListRequest();
                cellListRequest.site = ConfigureHelp.ElectricCoreSite;

                cellListRequest.processLot = barcode;//托盘号;
                cellListRequest.mode       = ND.CoreList.ModeTrayMatrix.ROWFIRST;
                getId.CellListRequest      = cellListRequest;
                getCell = cell.getCellListByTrayId(getId);
            }
            catch (Exception ex)
            {
                ConfigureHelp.SaveInfoToCSVFile(barcode, door.ToString(), resource, ex.Message);
                Common.Msg.Warning("MES返回报错:" + ex.Message);//返回信息
            }
            return(getCell);
        }
Ejemplo n.º 2
0
        /// <summary>
        /// 电芯解绑
        /// </summary>
        /// <returns></returns>
        public static releaseTrayIdResponse ElectricCoreStrappedAddress()
        {
            releaseTrayIdResponse releaseTrayIdResponseAddress = new releaseTrayIdResponse();

            try
            {
                CellTestIntegrationServiceService CellTestIntegrationServiceServiceAddress = new CellTestIntegrationServiceService();
                releaseTrayId releaseTrayIdAddress = new releaseTrayId();
                releaseTrayIdAddress.ProcessLotReleaseRequest.site = "";//所在的站点
                releaseTrayIdResponseAddress = CellTestIntegrationServiceServiceAddress.releaseTrayId(releaseTrayIdAddress);
            }
            catch (Exception)
            {
                throw;
            }
            return(releaseTrayIdResponseAddress);
        }