Exemple #1
0
 public FrmHienThiLCDKANBAN()
 {
     InitializeComponent();
     //Get list Chuyen
     listChuyen     = BLLAssignmentForLine.Instance.GetAssignmentForLines(AccountSuccess.strListChuyenId.Split(',').Select(x => Convert.ToInt32(x)).ToList()).OrderBy(x => x.MaChuyen).ToList();// chuyenDAO.GetListDSChuyen(AccountSuccess.strListChuyenId).OrderBy(x => x.MaChuyen).ToList();
     this.timerShow = new System.Windows.Forms.Timer(this.components);
     LoadLCDConfig();
     //Get config information
     listTableLayoutPanelConfig = tableLayoutPanelConfigDAO.GetTableLayoutPanelConfig(tableType);
     //Get config panel
     listPanelConfig = panelConfigDAO.GetPanelConfig(tableType);
     //Get label config
     listLabelConfig = labelConfigDAO.GetLabelConfig(tableType);
     //Get label for tablepanel
     listLabelForTablePanel = labelConfigDAO.GetLabelForTablePanel(tableType);
     //Init
     dtDataChuyen = new DataTable();
     nangSuatDAO  = new NangXuatDAO();
     //tblpanelHeader and tblpanelContent
     BuildPanelHeaderAndContent();
     //tblpanelBody
     BuildPanelBody();
     //Load Data for Chuyens
     LoadDataForChuyens();
 }
        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();
        }
 public FrmDayInfo(FrmMainNew _frmMainNew)
 {
     InitializeComponent();
     chuyenDAO         = new ChuyenDAO();
     chuyen_sanphamDAO = new Chuyen_SanPhamDAO();
     nangSuatDAO       = new NangXuatDAO();
     //   dtSanPham = new DataTable();
     btpDAO     = new BTPDAO();
     frmMainNew = _frmMainNew;
 }