예제 #1
0
 public static void SetUser(HttpSessionState session, Bubis.Andika.DAL.EF.Users user)
 {
     session[SESSION_USER] = user;
     CacheHelper.SetUserRole(user.USER_Mail, UsersManager.GetCurrentVersion(user).ROLE_Id);
 }
예제 #2
0
        private void WriteFilter(Bubis.Andika.DAL.Filters.OrderFilter filter)
        {
            this.chkDeactive.Checked = !filter.Active.Value;
            this.txtId.Text = filter.ORDR_Id.HasValue ? filter.ORDR_Id.Value.ToString() : string.Empty;
            this.txtCode.Text = filter.ORDR_Code;
            this.txtDateFrom.Text = Bubis.Andika.WebSite.App_Code.Helpers.ControlsHelper.GetStringValueForTextBox(filter.ORDR_DateFrom);
            this.txtDateTo.Text = Bubis.Andika.WebSite.App_Code.Helpers.ControlsHelper.GetStringValueForTextBox(filter.ORDR_DateTo);
            this.txtCompanyGroup.Text = filter.COMP_GroupName;
            this.txtClientGroup.Text = filter.CLT_GroupName;
            this.ddlVendor.SelectedValue = filter.CLT_Vendor.HasValue ? filter.CLT_Vendor.Value.ToString() : string.Empty;
            this.rblBalance.SelectedValue = (filter.isPaid.HasValue) ? filter.isPaid.ToString() : "ALL";
            this.rblShipment.SelectedValue = (filter.isShipped.HasValue) ? filter.isShipped.ToString() : "ALL";
            this.txtBill.Text = filter.Bill;

            this.SetSelectedCompaniesIds(filter.COMP_Ids);
            this.SetSelectedClientsIds(filter.CLT_Ids);
        }
예제 #3
0
 private void WriteFilter(Bubis.Andika.DAL.Filters.AccountFilter filter)
 {
     this.chkDeactive.Checked = !filter.Active.Value;
     this.txtDateFrom.Text = Bubis.Andika.WebSite.App_Code.Helpers.ControlsHelper.GetStringValueForTextBox(filter.ACT_Date_From);
     this.txtDateTo.Text = Bubis.Andika.WebSite.App_Code.Helpers.ControlsHelper.GetStringValueForTextBox(filter.ACT_Date_To);
 }