示例#1
0
        //private YM _YM;
        public SEL_YMB(int iYear, int iMonth, string strBranch) : base(iYear, iMonth)
        {
            if (iYear > 0)
            {
                _iYear = iYear;
            }
            else
            {
                _iYear = DateTime.Today.Year;
            }
            if (iMonth > 0)
            {
                _iMonth = iMonth;
            }
            else
            {
                _iMonth = DateTime.Today.Month;
            }

            if (string.IsNullOrWhiteSpace(strBranch) || string.IsNullOrEmpty(strBranch))
            {
                _strBranch = "";
            }
            else
            {
                _strBranch = strBranch;
            }

            _dataContext = new DataClassesPODataContext();
        }
示例#2
0
 public SEL_YMD(int iYear, int iMonth, int iDay) : base(iYear, iMonth)
 {
     if (iYear > 0)
     {
         _iYear = iYear;
     }
     else
     {
         _iYear = DateTime.Today.Year;
     }
     if (iMonth > 0)
     {
         _iMonth = iMonth;
     }
     else
     {
         _iMonth = DateTime.Today.Month;
     }
     if (iDay > 0)
     {
         _iDay = iDay;
     }
     else
     {
         _iDay = DateTime.Today.Day;
     }
     _dataContext = new DataClassesPODataContext();
 }
示例#3
0
        //private List<YM_View> ym_view;
        //private List<List<YM_View>> ym_view2;


        public SEL_YM(int iYear, int iMonth)
        {
            if (iYear > 0)
            {
                _iYear = iYear;
            }
            else
            {
                _iYear = DateTime.Today.Year;
            }
            if (iMonth > 0)
            {
                _iMonth = iMonth;
            }
            else
            {
                _iMonth = DateTime.Today.Month;
            }
            _dataContext = new DataClassesPODataContext();
        }
示例#4
0
 public USBPrinterStateController()
 {
     _db = new DataClassesPODataContext();
 }
示例#5
0
 // GET: BranchSerial
 public BranchSerialController()
 {
     _db = new DataClassesPODataContext();
 }
示例#6
0
 public PrinterLoadYMController()
 {
     _db = new DataClassesPODataContext();
 }
示例#7
0
 public PrinterState(DataClassesPODataContext db)
 {
     _db = db;
 }
示例#8
0
 //private int _Year;
 public PrinterLoad(DataClassesPODataContext db)
 {
     _db = db;
 }
示例#9
0
 public PrinterTonerController()
 {
     _db = new DataClassesPODataContext();
     _db.CommandTimeout = 500;
 }
示例#10
0
 public PrinterTonerCriticalController()
 {
     _db = new DataClassesPODataContext();
 }
 public NeededCartrigeController()
 {
     _db = new DataClassesPODataContext();
 }
 public CountCartridgeController()
 {
     _db = new DataClassesPODataContext();
 }
示例#13
0
 public PrinterToner(DataClassesPODataContext db)
 {
     _db = db;
 }