Exemplo n.º 1
0
 public FrmNangSuatCum()
 {
     InitializeComponent();
     cumDAO      = new CumDAO();
     maxCountCum = cumDAO.GetMaxCountOfChuyen();
     BuildGridView();
 }
        public FrmSendMailAndReadSound(int _timesGetNSInDay, int _getBTPInLineByType)
        {
            InitializeComponent();
            timesGetNSInDay                = _timesGetNSInDay;
            getBTPInLineByType             = _getBTPInLineByType;
            this.cumDAO                    = new CumDAO();
            this.chuyenDAO                 = new ChuyenDAO();
            this.dtLoadData                = new DataTable();
            this.dtDataNSChuyenExportExcel = new DataTable();
            this.dtDataNSCumExportExcel    = new DataTable();
            this.listSTTChuyen_SanPham     = new List <string>();
            this.listModelNangSuatCum      = new List <ModelNangSuatCum>();
            this.listNSCum                 = new List <NSCum>();
            this.ChuyenSanPham             = new ChuyenSanPham();
            this.isSendMail                = false;
            this.error          = string.Empty;
            this.strType        = string.Empty;
            this.strHost        = string.Empty;
            this.intPort        = 0;
            this.strFrom        = string.Empty;
            this.strDisplayName = string.Empty;
            this.strPassword    = string.Empty;
            this.strSubject     = string.Empty;
            this.strBody        = string.Empty;
            this.strTo          = string.Empty;

            this.nangxuatDAO = new NangXuatDAO();
        }