Ejemplo n.º 1
0
 public WorkCodeTypeController()
     : base()
 {
     workCodeTypeOper  = new TbBaseOper <WorkCodeType>(HibernateOper, typeof(WorkCodeType));
     workCodeType1Oper = new TbBaseOper <WorkCodeType1>(HibernateOper, typeof(WorkCodeType1));
     workCodeType2Oper = new TbBaseOper <WorkCodeType2>(HibernateOper, typeof(WorkCodeType2));
 }
Ejemplo n.º 2
0
        public PowerActionFilterAttribute()
        {
            IHibernateOper hibernateOper = HibernateFactory.GetInstance();

            empModFuncOper = new TbBaseOper <EmpModFunc>(hibernateOper, typeof(EmpModFunc));
            empModOper     = new TbBaseOper <EmpMod>(hibernateOper, typeof(EmpMod));
        }
Ejemplo n.º 3
0
        public LoginInvoker(IOperationInvoker invoker)
        {
            this.OperInvoker = invoker;

            IHibernateOper hibernateOper = HibernateFactory.GetInstance();
            empModFuncOper = new TbBaseOper<EmpModFunc>(hibernateOper, typeof(EmpModFunc));
        }
Ejemplo n.º 4
0
        public ActionResult DownLoadDept()
        {
            string fileName = Server.MapPath("/") + @"Files\Temp\" + "1.xlsx";

            IList <ExcelField> fields = new List <ExcelField>();

            ExcelField ef = null;

            ef = new ExcelField("Code", "代码");
            fields.Add(ef);
            ef = new ExcelField("Name", "名字");
            fields.Add(ef);
            ef = new ExcelField("TestExcel", "测试Excel");
            fields.Add(ef);

            TbBaseOper <Department> departmentOper = new TbBaseOper <Department>(HibernateOper, typeof(Department));
            IList <Department>      list           = departmentOper.Get();

            //ExportExcel ee = new ExportExcel(fileName, "abc", fields);
            ExportExcel ee = new ExportExcel(fileName, typeof(Department));

            ee.Save(list);

            //返回文件
            return(File(fileName, "xlsx", "1.xlsx"));
        }
Ejemplo n.º 5
0
 public WorkCodeTypeController()
     :base()
 {
     workCodeTypeOper = new TbBaseOper<WorkCodeType>(HibernateOper, typeof(WorkCodeType));
     workCodeType1Oper = new TbBaseOper<WorkCodeType1>(HibernateOper, typeof(WorkCodeType1));
     workCodeType2Oper = new TbBaseOper<WorkCodeType2>(HibernateOper, typeof(WorkCodeType2));
 }
Ejemplo n.º 6
0
 public WorkController()
     :base()
 {
     workOper = new TbBaseOper<Work>(HibernateOper, typeof(Work));
     workSubOper = new TbBaseOper<WorkSub>(HibernateOper, typeof(WorkSub));
     workDetailOper = new TbBaseOper<WorkDetail>(HibernateOper, typeof(WorkDetail));
     customerScoreOper = new TbBaseOper<CustomerScore>(HibernateOper, typeof(CustomerScore));
     workTypeDetailOper = new TbBaseOper<WorkTypeDetail>(HibernateOper, typeof(WorkTypeDetail));
 }
Ejemplo n.º 7
0
        public PowerInvoker(IOperationInvoker invoker, string funcName)
        {
            this.OperInvoker = invoker;
            this.FuncName = funcName;

            IHibernateOper hibernateOper = HibernateFactory.GetInstance();
            empModFuncOper = new TbBaseOper<EmpModFunc>(hibernateOper, typeof(EmpModFunc));
            empModOper = new TbBaseOper<EmpMod>(hibernateOper, typeof(EmpMod));
        }
Ejemplo n.º 8
0
 public WorkController()
     : base()
 {
     workOper           = new TbBaseOper <Work>(HibernateOper, typeof(Work));
     workSubOper        = new TbBaseOper <WorkSub>(HibernateOper, typeof(WorkSub));
     workDetailOper     = new TbBaseOper <WorkDetail>(HibernateOper, typeof(WorkDetail));
     customerScoreOper  = new TbBaseOper <CustomerScore>(HibernateOper, typeof(CustomerScore));
     workTypeDetailOper = new TbBaseOper <WorkTypeDetail>(HibernateOper, typeof(WorkTypeDetail));
 }
 public ServiceEmployee()
     : base()
 {
     try
     {
         //实例化人员操作对象
         employeeOper = new TbBaseOper<Employee>(HibernateOper, typeof (Employee));
     }
     catch (Exception e)
     {
         System.Console.WriteLine(e.Message);
     }
 }
Ejemplo n.º 10
0
 public CheckStockDetailController()
     : base()
 {
     checkStockDetailOper = new TbBaseOper<CheckStockDetail>(HibernateOper, typeof(CheckStockDetail));
 }
Ejemplo n.º 11
0
 public ModFuncController()
     : base()
 {
     modFuncOper = new TbBaseOper <ModFunc>(HibernateOper, typeof(ModFunc));
 }
Ejemplo n.º 12
0
 public HomeController()
 {
     IHibernateOper hibernateOper = HibernateFactory.GetInstance();
     empOper = new TbBaseOper<Employee>(hibernateOper,typeof(Employee));
 }
Ejemplo n.º 13
0
 public EmpDataController()
     :base()
 {
     empDataOper = new TbBaseOper<EmpData>(HibernateOper, typeof(EmpData));
 }
Ejemplo n.º 14
0
  public PurOrderController()
     : base()
 {
     purOrderOper = new TbBaseOper<PurOrder>(HibernateOper, typeof(PurOrder));
 }
Ejemplo n.º 15
0
 public UnitController()
     : base()
 {
     unitOper = new TbBaseOper <Unit>(HibernateOper, typeof(Unit));
 }
Ejemplo n.º 16
0
 public CheckStockController()
     : base()
 {
     checkStockOper = new TbBaseOper <CheckStock>(HibernateOper, typeof(CheckStock));
 }
Ejemplo n.º 17
0
 public PhotoController()
     : base()
 {
     photoOper = new TbBaseOper <Photo>(HibernateOper, typeof(Photo));
 }
Ejemplo n.º 18
0
 public PositionController()
     :base()
 {
     positionOper = new TbBaseOper<Position>(HibernateOper, typeof(Position));
 }
Ejemplo n.º 19
0
 public PowerActionFilterAttribute()
 {
     IHibernateOper hibernateOper = HibernateFactory.GetInstance();
     empModFuncOper = new TbBaseOper<EmpModFunc>(hibernateOper, typeof(EmpModFunc));
     empModOper = new TbBaseOper<EmpMod>(hibernateOper, typeof(EmpMod));
 }
Ejemplo n.º 20
0
 public EmployeeController()
     : base()
 {
     employeeOper = new TbBaseOper <Employee>(HibernateOper, typeof(Employee));
 }
Ejemplo n.º 21
0
 public SellPriceInfoController()
     : base()
 {
     sellPriceInfoOper = new TbBaseOper<SellPriceInfo>(HibernateOper, typeof(SellPriceInfo));
 }
Ejemplo n.º 22
0
 public StockInitController()
     :base()
 {
     stockInitOper = new TbBaseOper<StockInit>(HibernateOper, typeof(StockInit));
 }
Ejemplo n.º 23
0
 public DepartmentController()
     : base()
 {
     departmentOper = new TbBaseOper <Department>(HibernateOper, typeof(Department));
 }
Ejemplo n.º 24
0
 public CheckStockController()
     : base()
 {
     checkStockOper = new TbBaseOper<CheckStock>(HibernateOper, typeof(CheckStock));
 }
Ejemplo n.º 25
0
 public StockController()
     :base()
 {
     stockOper = new TbBaseOper<Stock>(HibernateOper, typeof(Stock));
 }
Ejemplo n.º 26
0
 public PhotoController()
     :base()
 {
     photoOper = new TbBaseOper<Photo>(HibernateOper, typeof(Photo));
 }
Ejemplo n.º 27
0
        public HomeController()
        {
            IHibernateOper hibernateOper = HibernateFactory.GetInstance();

            empOper = new TbBaseOper <Employee>(hibernateOper, typeof(Employee));
        }
Ejemplo n.º 28
0
 public EmpModFuncController()
     :base()
 {
     empModFuncOper = new TbBaseOper<EmpModFunc>(HibernateOper, typeof(EmpModFunc));
 }
Ejemplo n.º 29
0
 public FileController()
     : base()
 {
     fileOper = new TbBaseOper <File>(HibernateOper, typeof(File));
 }
Ejemplo n.º 30
0
 public PositionController()
     : base()
 {
     positionOper = new TbBaseOper <Position>(HibernateOper, typeof(Position));
 }
Ejemplo n.º 31
0
 public RentOrderController()
     : base()
 {
     rentOrderOper = new TbBaseOper <RentOrder>(HibernateOper, typeof(RentOrder));
 }
Ejemplo n.º 32
0
 public EmpModFuncController()
     : base()
 {
     empModFuncOper = new TbBaseOper <EmpModFunc>(HibernateOper, typeof(EmpModFunc));
 }
Ejemplo n.º 33
0
 public RentOrderDetailController()
      : base()
  {
      rentOrderDetailOper = new TbBaseOper<RentOrderDetail>(HibernateOper, typeof(RentOrderDetail));
  }
Ejemplo n.º 34
0
 public CompanyController()
     :base()
 {
     companyOper = new TbBaseOper<Company>(HibernateOper, typeof(Company));
 }
Ejemplo n.º 35
0
 public GoodsInfoController()
     : base()
 {
     goodsInfoOper = new TbBaseOper <GoodsInfo>(HibernateOper, typeof(GoodsInfo));
 }
Ejemplo n.º 36
0
 public SellOrderDetailController()
     : base()
 {
     sellOrderDetailOper = new TbBaseOper <SellOrderDetail>(HibernateOper, typeof(SellOrderDetail));
 }
Ejemplo n.º 37
0
 public AddrCodeController()
     :base()
 {
     addrCodeOper = new TbBaseOper<AddrCode>(HibernateOper, typeof(AddrCode));
 }
Ejemplo n.º 38
0
 public EmployeeController()
     : base()
 {
     employeeOper = new TbBaseOper<Employee>(HibernateOper, typeof(Employee));
 }
Ejemplo n.º 39
0
 public GoodsTypeController()
     : base()
 {
     goodsTypeOper = new TbBaseOper <GoodsType>(HibernateOper, typeof(GoodsType));
 }
Ejemplo n.º 40
0
 public VendorInfoController()
     : base()
 {
     vendorInfoOper = new TbBaseOper <VendorInfo>(HibernateOper, typeof(VendorInfo));
 }
Ejemplo n.º 41
0
 public PurOrderController()
     : base()
 {
     purOrderOper = new TbBaseOper <PurOrder>(HibernateOper, typeof(PurOrder));
 }
Ejemplo n.º 42
0
 public EmpModController()
     : base()
 {
     empModOper = new TbBaseOper <EmpMod>(HibernateOper, typeof(EmpMod));
 }
Ejemplo n.º 43
0
 public ReqOrderController()
      : base()
  {
      reqOrderOper = new TbBaseOper<ReqOrder>(HibernateOper, typeof(ReqOrder));
  }
Ejemplo n.º 44
0
 public UnitController()
     :base()
 {
     unitOper = new TbBaseOper<Unit>(HibernateOper, typeof(Unit));
 }
Ejemplo n.º 45
0
 public AddrCodeController()
     : base()
 {
     addrCodeOper = new TbBaseOper <AddrCode>(HibernateOper, typeof(AddrCode));
 }
Ejemplo n.º 46
0
 public VendorInfoController()
     : base()
 {
     vendorInfoOper = new TbBaseOper<VendorInfo>(HibernateOper, typeof(VendorInfo));
 }
Ejemplo n.º 47
0
 public StockInitController()
     : base()
 {
     stockInitOper = new TbBaseOper <StockInit>(HibernateOper, typeof(StockInit));
 }
Ejemplo n.º 48
0
 public CustomerController()
     :base()
 {
     customerOper = new TbBaseOper<Customer>(HibernateOper, typeof(Customer));
 }
Ejemplo n.º 49
0
 public GoodsInfoController()
     : base()
 {
     goodsInfoOper = new TbBaseOper<GoodsInfo>(HibernateOper, typeof(GoodsInfo));
 }
Ejemplo n.º 50
0
 public PurOrderDetailController()
     : base()
 {
     purOrderDetailOper = new TbBaseOper <PurOrderDetail>(HibernateOper, typeof(PurOrderDetail));
 }
Ejemplo n.º 51
0
 public StorehouseController()
     : base()
 {
     storehouseOper = new TbBaseOper <Storehouse>(HibernateOper, typeof(Storehouse));
 }
Ejemplo n.º 52
0
 public StockController()
     : base()
 {
     stockOper = new TbBaseOper <Stock>(HibernateOper, typeof(Stock));
 }
Ejemplo n.º 53
0
 public CompanyController()
     : base()
 {
     companyOper = new TbBaseOper <Company>(HibernateOper, typeof(Company));
 }
Ejemplo n.º 54
0
 public GardenController()
     : base()
 {
     gardenOper = new TbBaseOper <Garden>(HibernateOper, typeof(Garden));
 }
Ejemplo n.º 55
0
 public CustomerController()
     : base()
 {
     customerOper = new TbBaseOper <Customer>(HibernateOper, typeof(Customer));
 }
Ejemplo n.º 56
0
 public SellOrderController()
     : base()
 {
     sellOrderOper = new TbBaseOper<SellOrder>(HibernateOper, typeof(SellOrder));
 }
Ejemplo n.º 57
0
 public StorehouseController()
     : base()
 {
     storehouseOper = new TbBaseOper<Storehouse>(HibernateOper, typeof(Storehouse));
 }
Ejemplo n.º 58
0
 public StorageAlarmController()
     :base()
 {
     storageAlarmOper = new TbBaseOper<StorageAlarm>(HibernateOper, typeof(StorageAlarm));
 }
Ejemplo n.º 59
0
 public RetOrderDetailController()
     : base()
 {
     retOrderDetailOper = new TbBaseOper <RetOrderDetail>(HibernateOper, typeof(RetOrderDetail));
 }
Ejemplo n.º 60
0
 public GardenController()
     :base()
 {
     gardenOper = new TbBaseOper<Garden>(HibernateOper, typeof(Garden));
 }