예제 #1
0
        public DataTable RunImportProccess(ViewModelImportInfo viewmodelImport)
        {
            clsDataAcces controldata = new clsDataAcces();

            GPdataaccess data = new GPdataaccess();

            this.IDCarga   = viewmodelImport.iIDCarga;
            this.CompanyID = viewmodelImport.iCompanyID;
            this.Chequera  = viewmodelImport.sChequera;
            this.webSrvGP  = new WebServiceManager(viewmodelImport.UserId,
                                                   viewmodelImport.Password, viewmodelImport.Dominio,
                                                   viewmodelImport.Url, data.GPHNCARGAR(), data.SITINTEGRATION());
            int ID = viewmodelImport.iIDCarga;

            try
            {
                //no problema
                //this.tblCarga = this.cData.GetTblCarga(ID);
                this.tblCarga = controldata.GetTblCarga(ID);
                return(this.tblCarga);
            }
            catch (Exception ex)
            {
                throw ex;
            }
        }
        //  public clsDataAcces(string sConn, string sConn2)
        public clsDataAcces()
        {
            GPdataaccess dataaccess = new GPdataaccess();


            this.sqlConn     = new SqlConnection(dataaccess.SITINTEGRATION());
            this.sqlConnGpDB = new SqlConnection(dataaccess.GPHNCARGAR());
            this.sConnGpDb   = dataaccess.GPHNCARGAR();
            // this.cLogic = new clsLogic();
        }