示例#1
0
 protected void Page_Load(object sender, EventArgs e)
 {
     try
     {
         isSysSettingNameLoad = false;
         this.cmbSysSettingName.Load += new EventHandler(cmbSysSettingName_Load);
         type = Request["Type"];
         iSysSetting = ServiceAgent.getInstance().GetMaintainObjectByName<ISysSetting>(WebConstant.MaintainSysSettingObject);
         pmtMessage1 = this.GetLocalResourceObject(Pre + "_pmtMessage1").ToString();
         pmtMessage2 = this.GetLocalResourceObject(Pre + "_pmtMessage2").ToString();
         pmtMessage3 = this.GetLocalResourceObject(Pre + "_pmtMessage3").ToString();
         pmtMessage4 = this.GetLocalResourceObject(Pre + "_pmtMessage4").ToString();
         pmtMessage5 = this.GetLocalResourceObject(Pre + "_pmtMessage5").ToString();
         pmtMessage6 = this.GetLocalResourceObject(Pre + "_pmtMessage6").ToString();
         if (!this.IsPostBack)
         {
             userName = Master.userInfo.UserId;
             this.HiddenUserName.Value = userName;
             initLabel();
             //bindTable(null, DEFAULT_ROWS);
             initcmbSysSettingNameList();
         }
         
         ScriptManager.RegisterStartupScript(this.updatePanelAll, typeof(System.Object), "InitControl", "initControls();", true);
     }
     catch (FisException ex)
     {
         showErrorMessage(ex.mErrmsg);
     }
     catch (Exception ex)
     {
         showErrorMessage(ex.Message);
     }
 }
示例#2
0
 public AccountController(IPermissionProvider permissionManage,
                          IAuthProvider authProvider, IAdminUser Iuser,
                          IUser_Password_History userPasswordHistory, ISysSetting sysSetting)
     : base(permissionManage)
 {
     this.authProvider         = authProvider;
     this._adminUserService    = Iuser;
     this._userPasswordHistory = userPasswordHistory;
     this._sysSetting          = sysSetting;
 }
 public NotificationController(
     INotification notificationService,
     IVisitNotification visitNotificationService,
     IUser userService,
     ISendNotificationResult sendNotificationResult,
     ISysSetting systemSettingService
     )
 {
     _notificationService      = notificationService;
     _visitNotificationService = visitNotificationService;
     _userService            = userService;
     _sendNotificationResult = sendNotificationResult;
     _systemSettingService   = systemSettingService;
 }
示例#4
0
 public BusinessController(IBusiness _repository,
                           ICommon commonRepository,
                           ISysSetting settingRepository,
                           IUser userRepository,
                           INotification notificationService,
                           IUser_Role userRoleService
                           )
 {
     this.repository       = _repository;
     _commonRepository     = commonRepository;
     _sysSettingRepository = settingRepository;
     _userRepository       = userRepository;
     _notificationService  = notificationService;
     _userRoleService      = userRoleService;
 }
示例#5
0
    protected void Page_Load(object sender, EventArgs e)
    {
        iassetRange = (IAssetRange)ServiceAgent.getInstance().GetMaintainObjectByName<IAssetRange>(WebConstant.ASSETRANGE);
        iassetRange_SH = (IAssetRange)ServiceAgent.getInstance().GetObjectByName<IAssetRange>(WebConstant.ASSETRANGE);
        iSysSetting = ServiceAgent.getInstance().GetMaintainObjectByName<ISysSetting>(WebConstant.MaintainSysSettingObject);
        if (!this.IsPostBack)
        {
            pmtMessage1 = this.GetLocalResourceObject(Pre + "_pmtMessage1").ToString();
            pmtMessage2 = this.GetLocalResourceObject(Pre + "_pmtMessage2").ToString();
            pmtMessage3 = this.GetLocalResourceObject(Pre + "_pmtMessage3").ToString();
            pmtMessage4 = this.GetLocalResourceObject(Pre + "_pmtMessage4").ToString();
            pmtMessage5 = this.GetLocalResourceObject(Pre + "_pmtMessage5").ToString();
            pmtMessage6 = this.GetLocalResourceObject(Pre + "_pmtMessage6").ToString();
      //      pmtMessage7 = this.GetLocalResourceObject(Pre + "_pmtMessage7").ToString();
            
            //need change..
            userName = Master.userInfo.UserId;
            this.HiddenUserName.Value = userName;
            //load data
            initLabel();
            initSelect();
            //find all AC Adaptor...
            //...
            IList<AssetRangeDef> datalst=null;
            try 
            {
                string code = this.cmbCodeSelect.SelectedValue.ToString().Trim();
                //datalst = iassetRange.GetAllAssetRanges();
                datalst = iassetRange.GetAssetRangeByCode(code);
            }
            catch(FisException fe)
            {
                showErrorMessage(fe.mErrmsg);
                return;
            }
            catch(Exception ee)
            {
                showErrorMessage(ee.Message);
                return;
            }
            bindTable(datalst, DEFAULT_ROWS);

        }

    }
示例#6
0
 public OperatorController(IOperator repository,
                           ICommon commonRepository,
                           INotification notificationService,
                           ISysSetting sysSettingRepository,
                           IUser_Role userRoleService,
                           IUser userRepository,
                           IOperatorInfoVerifciationRepository operatorRepository,
                           IRoleVerification roleVerificationRepository)
 {
     this.repository             = repository;
     _commonRepository           = commonRepository;
     _notificationService        = notificationService;
     _sysSettingRepository       = sysSettingRepository;
     _userRepository             = userRepository;
     _userRoleService            = userRoleService;
     _operatorRepository         = operatorRepository;
     _roleVerificationRepository = roleVerificationRepository;
 }
示例#7
0
    protected void Page_Load(object sender, EventArgs e)
    {

        try
        {
            isCheckItemTypeLoad = false;
            this.cmbModuleTop.Load += new EventHandler(cmbModuleTop_Load);
            iModuleApprovalItem = ServiceAgent.getInstance().GetMaintainObjectByName<IModuleApprovalItem>(WebConstant.ModuleApprovalItemObject);
            iSysSetting = ServiceAgent.getInstance().GetMaintainObjectByName<ISysSetting>(WebConstant.MaintainSysSettingObject);
            pmtMessage1 = this.GetLocalResourceObject(Pre + "_pmtMessage1").ToString();
            pmtMessage2 = this.GetLocalResourceObject(Pre + "_pmtMessage2").ToString();
            pmtMessage3 = this.GetLocalResourceObject(Pre + "_pmtMessage3").ToString();
            pmtMessage4 = this.GetLocalResourceObject(Pre + "_pmtMessage4").ToString();
            pmtMessage5 = this.GetLocalResourceObject(Pre + "_pmtMessage5").ToString();
            pmtMessage10 = this.GetLocalResourceObject(Pre + "_pmtMessage10").ToString();
            //rr.Attributes.Add("OnClick", "changeRadio(this)");
            
            if (!this.IsPostBack)
            {
                
                userName = Master.userInfo.UserId;
                this.HiddenUserName.Value = userName;
                initLabel();
                initcmbModuleTop("");
                initcmbModule();
                initFamilyList();
                bindTable(null, DEFAULT_ROWS);
            }
            ScriptManager.RegisterStartupScript(this.updatePanelAll, typeof(System.Object), "InitControl", "initControls();", true);
        }
        catch (FisException ex)
        {
            showErrorMessage(ex.mErrmsg);
        }
        catch (Exception ex)
        {
            showErrorMessage(ex.Message);
        }
    }
示例#8
0
 public ConfigController(IPermissionProvider permissionManage,
                         IAdminUser adminUserRepository, ISysSetting systemSettingService)
     : base(permissionManage, adminUserRepository)
 {
     _systemSettingService = systemSettingService;
 }