Example #1
0
 public DocumentTransmitter(IImagesDal imagesDal, IVaulter vaulter, IXmitRequestDal xmitRequestDal, TransmitDestination transmitDestination = null)
 {
     this.imagesDal           = imagesDal;
     this.transmitDestination = transmitDestination;
     this.vaulter             = vaulter;
     this.xmitRequestDal      = xmitRequestDal;
 }
Example #2
0
 public InboundQTabPnll(string pSqlConnectionString, string pUserId)
 {
     TabFilter = "";
     DefaultView = null;
     CptyLkupTable = null;
     InitializeComponent();
     sqlConnectionString = pSqlConnectionString;
     imagesDal = new ImagesDal(sqlConnectionString);
     this.Dock = DockStyle.Fill;
     p_UserId = pUserId;
     inboundDocsDal = new InboundDocsDal(sqlConnectionString);
     vaulter = new Vaulter(sqlConnectionString);            
     xmitRequestDal = new XmitRequestDal(sqlConnectionString);
 }
Example #3
0
 public ImageManager(IImagesDal imagesDal)
 {
     _imagesDal = imagesDal;
 }
Example #4
0
        public InboundPnl(string pSqlConnectionString, ref DSManager dsManager, ref DataSet masterDataSet,
            IsDocumentModifiedDelegate isDocumentModified)
        {
            CdtyCodeTbl = null;
            UserUpdateAccces = false;
            try
            {
                sqlConnectionString = pSqlConnectionString;
                DsManager = dsManager;
                InboundPnl.masterDataSet = masterDataSet;
                IsDocumentEdited = isDocumentModified;

                InitializeComponent();

                mImagesDal = new ImagesDal(pSqlConnectionString);
                vaulter = new Vaulter(pSqlConnectionString);
                xmitRequestDal = new XmitRequestDal(pSqlConnectionString);

                //Israel 12/16/2015 -- Implement configurable root directory.
                string configFileRootDir = InboundSettings.UserSettingsRootDir;

                if (String.IsNullOrEmpty(configFileRootDir))
                {
                    configFileRootDir = Environment.GetFolderPath(Environment.SpecialFolder.ApplicationData);
                }
                else
                {
                    string pathUserId = GetUserNameWithoutDomain(p_UserId);
                    configFileRootDir = Path.Combine(configFileRootDir, pathUserId);
                }

                string roamingFolderLocation = Path.Combine(configFileRootDir, PRODUCT_COMPANY, PRODUCT_BRAND, PRODUCT_GROUP);

                //var roamingFolderLocation =
                //    Path.Combine(Environment.GetFolderPath(Environment.SpecialFolder.ApplicationData),
                //        PRODUCT_COMPANY, PRODUCT_BRAND, PRODUCT_GROUP);

                appSettingsDir = Path.Combine(roamingFolderLocation, PRODUCT_NAME, PRODUCT_SETTINGS);
                appTempDir = Path.Combine(roamingFolderLocation, PRODUCT_NAME, PRODUCT_TEMP);

                if (!Directory.Exists(appSettingsDir))
                {
                    Directory.CreateDirectory(appSettingsDir);
                }

                if (!Directory.Exists(appTempDir))
                {
                    Directory.CreateDirectory(appTempDir);
                }


                Dock = DockStyle.Fill;
                xtraTabCntrlInboundDocs.HeaderLocation = TabHeaderLocation.Left;
                xtraTabCntrlInboundDocs.HeaderOrientation = TabOrientation.Horizontal;


                //InitWebServices();
                AddInboundDocQPnl(DEFAULTDOCS);
                AddInboundDocQPnl(DISCARDEDDOCS);                
                AddInboundDocQPnl(IGNOREDDOCS);
                InitMasterDataSet();
                RegisterGrids();
                LoadGridSettings();
                barEditDocumentView.EditValue = "All";
            }
            catch (Exception ex)
            {
                //throw ex;
                throw new Exception("An error occurred while constructing the Inbound Panel." + Environment.NewLine +
                     "Error CNF-428 in " + FORM_NAME + ".InboundPnl(): " + ex.Message);
            }
        }
Example #5
0
 public ImagesManager(IImagesDal carImageDAL)
 {
     _carImageDAL = carImageDAL;
 }
Example #6
0
 public ImagesManager(IImagesDal filmImagesDal)
 {
     _filmImagesDal = filmImagesDal;
 }