protected void Page_Load(object sender, EventArgs e)
 {
     if (!IsPostBack)
     {
         ddlParentDataBind();
         ddlLeaderDataBind();
         btnCancel.OnClientClick = ActiveWindow.GetHideReference();
         int id;
         if (int.TryParse(Request["id"], out id))
         {
             loadData(id);
         }
     }
 }
Ejemplo n.º 2
0
        protected void Page_Load(object sender, EventArgs e)
        {
            if (!IsPostBack)
            {
                //权限检查
                CheckPowerWithButton("CorePaymentEdit", btnSaveClose);

                if (action == "edit")
                {
                    Bind();
                }
                btnClose.OnClientClick = ActiveWindow.GetHideReference();
            }
        }
Ejemplo n.º 3
0
 /// <summary>
 /// 点击关闭按钮
 /// </summary>
 /// <param name="sender"></param>
 /// <param name="e"></param>
 protected virtual void btnClose_Click(object sender, EventArgs e)
 {
     try
     {
         // 如果已经修改过数据,那么回发时应当刷新表格
         PageContext.RegisterStartupScript(Session[FORCE_REFRESH].ToBoolean()
             ? ActiveWindow.GetHidePostBackReference(FORCE_REFRESH)
             : ActiveWindow.GetHideReference());
     }
     catch (Exception ex)
     {
         Alert.ShowInTop(ex.Message, "关闭失败", MessageBoxIcon.Error);
     }
 }
Ejemplo n.º 4
0
 protected void Page_Load(object sender, EventArgs e)
 {
     if (!IsPostBack)
     {
         btnClose.OnClientClick = ActiveWindow.GetHideReference();
         CheckPowerWithButton("CorePartsEdit", btnSaveClose);
         //绑定物品单位
         BindUnit();
         //绑定配件类型信息
         BindCostType();
         //加载数据
         Bind();
     }
 }
Ejemplo n.º 5
0
        protected void Page_Load(object sender, EventArgs e)
        {
            if (!IsPostBack)
            {
                btnClose.OnClientClick = ActiveWindow.GetHideReference();

                if (!string.IsNullOrEmpty(Request.QueryString["dptId"]))
                {
                    string dptId = Request.QueryString["dptId"];

                    LoadData(dptId);
                }
            }
        }
Ejemplo n.º 6
0
        private void LoadData()
        {
            btnClose.OnClientClick = ActiveWindow.GetHideReference();

            //// 模块名称列表
            //ddlModules.DataSource = ModuleTypeHelper.GetAppModules();
            //ddlModules.DataBind();

            //ddlModules.SelectedValue = ModuleTypeHelper.Module2String(ModuleType.None);

            BindDDL();

            InitIconList(iconList);
        }
        protected void Page_Load(object sender, EventArgs e)
        {
            id = Request["id"] != null?int.Parse(Request["id"]) : 0;

            if (!IsPostBack)
            {
                btnCancel.OnClientClick = ActiveWindow.GetHideReference();
                ddlPathDataBind();
                if (id != 0)
                {
                    loadData(id);
                }
            }
        }
Ejemplo n.º 8
0
        void LoadData()
        {
            this.btnClose.OnClientClick = ActiveWindow.GetHideReference();

            this.BindDdlParent();

            if (Request.QueryString.AllKeys.Contains("id"))
            {
                string vID = Request.QueryString["id"];

                var vItem = NavigateGroup.Lazy(p => p.ID == vID);
                if (vItem == null)
                {
                    Alert.Show("读取导航信息错误!", String.Empty, ActiveWindow.GetHideReference());
                    return;
                }

                this.lbID.Text = vItem.ID;

                int type = 0;
                if ((vItem.Attributes & 0x0004) == 0x0004)
                {
                    type = 0x0004;
                }
                else if ((vItem.Attributes & 0x0008) == 0x0008)
                {
                    type = 0x0008;
                }
                else if ((vItem.Attributes & 0x0010) == 0x0010)
                {
                    type = 0x0010;
                }

                this.ddlParent.SelectedValue = string.Format("{0}|{1}", type, vItem.ParentID);

                this.tbName.Text        = vItem.Name;
                this.nbSortCode.Text    = vItem.SortCode.ToString();
                this.tbDescription.Text = vItem.Description;

                this.cbExpend.Checked = (vItem.Attributes & 0x0002) == 0x0002;

                this.btnSave.Enabled   = false;
                this.ddlParent.Enabled = false;
            }
            else
            {
                this.lbID.Text = Guid.NewGuid().ToString().ToUpper();
            }
        }
Ejemplo n.º 9
0
        /// <summary>
        /// 加载页面
        /// </summary>
        /// <param name="sender"></param>
        /// <param name="e"></param>
        protected void Page_Load(object sender, EventArgs e)
        {
            if (!IsPostBack)
            {
                this.ProjectId = this.CurrUser.LoginProjectId;
                this.btnClose.OnClientClick = ActiveWindow.GetHideReference();
                BLL.UserService.InitUserDropDownList(this.drpCheckPerson, this.ProjectId, true);
                BLL.ConstValue.InitConstValueDropDownList(this.drpWeather, ConstValue.Group_Weather, true); //天气
                checkDayDetails.Clear();

                this.CheckDayId = Request.Params["CheckDayId"];
                var checkDay = BLL.Check_CheckDayService.GetCheckDayByCheckDayId(this.CheckDayId);
                if (checkDay != null)
                {
                    this.ProjectId            = checkDay.ProjectId;
                    this.txtCheckDayCode.Text = BLL.CodeRecordsService.ReturnCodeByDataId(this.CheckDayId);
                    if (!string.IsNullOrEmpty(checkDay.WeatherId))
                    {
                        this.drpWeather.SelectedValue = checkDay.WeatherId;
                    }
                    if (!string.IsNullOrEmpty(checkDay.CheckPerson))
                    {
                        this.drpCheckPerson.SelectedValue = checkDay.CheckPerson;
                    }
                    if (checkDay.CheckTime != null)
                    {
                        this.txtCheckDate.Text = string.Format("{0:yyyy-MM-dd}", checkDay.CheckTime);
                    }
                    //this.txtDaySummary.Text = HttpUtility.HtmlDecode(checkDay.DaySummary);
                    checkDayDetails = (from x in Funs.DB.View_Check_CheckDayDetail where x.CheckDayId == this.CheckDayId orderby x.CheckItem select x).ToList();
                }
                else
                {
                    ////自动生成编码
                    this.txtCheckDayCode.Text         = BLL.CodeRecordsService.ReturnCodeByMenuIdProjectId(BLL.Const.ProjectCheckDayWHMenuId, this.ProjectId, this.CurrUser.UnitId);
                    this.drpCheckPerson.SelectedValue = this.CurrUser.UserId;
                    this.txtCheckDate.Text            = string.Format("{0:yyyy-MM-dd}", DateTime.Now);
                    //this.txtDaySummary.Text = HttpUtility.HtmlDecode("其他情况日小结");
                }
                Grid1.DataSource = checkDayDetails;
                Grid1.DataBind();
                //SetColor();
                ///初始化审核菜单
                this.ctlAuditFlow.MenuId    = BLL.Const.ProjectCheckDayWHMenuId;
                this.ctlAuditFlow.DataId    = this.CheckDayId;
                this.ctlAuditFlow.ProjectId = this.ProjectId;
                this.ctlAuditFlow.UnitId    = this.CurrUser.UnitId;
            }
        }
Ejemplo n.º 10
0
        /// <summary>
        /// 加载页面
        /// </summary>
        /// <param name="sender"></param>
        /// <param name="e"></param>
        protected void Page_Load(object sender, EventArgs e)
        {
            if (!IsPostBack)
            {
                this.btnClose.OnClientClick = ActiveWindow.GetHideReference();

                this.RegistrationId = Request.Params["RegistrationId"];
                if (!string.IsNullOrEmpty(this.RegistrationId))
                {
                    Model.View_Inspection_Registration registration = BLL.RegistrationService.GetRegistrationById(this.RegistrationId);
                    if (registration != null)
                    {
                        ///单位
                        BLL.UnitService.InitUnitDropDownList(this.drpResponsibilityUnit, registration.ProjectId, false);
                        //区域
                        BLL.WorkAreaService.InitWorkAreaDropDownList(this.drpWorkArea, registration.ProjectId, false);
                        if (!string.IsNullOrEmpty(registration.WorkAreaId))
                        {
                            this.drpWorkArea.SelectedValue = registration.WorkAreaId;
                        }
                        if (!string.IsNullOrEmpty(registration.ResponsibilityUnitId))
                        {
                            this.drpResponsibilityUnit.SelectedValue = registration.ResponsibilityUnitId;
                            BLL.UserService.InitUserProjectIdUnitIdDropDownList(this.drpResponsibilityMan, registration.ProjectId, registration.ResponsibilityUnitId, false);
                            if (!string.IsNullOrEmpty(registration.ResponsibilityManId))
                            {
                                this.drpResponsibilityMan.SelectedValue = registration.ResponsibilityManId;
                            }
                        }

                        this.txtProblemTypes.Text       = registration.ProblemTypes;
                        this.txtProblemDescription.Text = registration.ProblemDescription;
                        this.txtTakeSteps.Text          = registration.TakeSteps;

                        if (registration.RectificationPeriod.HasValue)
                        {
                            this.txtRectificationPeriod.Text = string.Format("{0:yyyy-MM-dd}", registration.RectificationPeriod);
                            this.txtH.Text = registration.RectificationPeriod.Value.Hour.ToString();
                            this.txtM.Text = registration.RectificationPeriod.Value.Minute.ToString();
                        }
                        this.txtCheckManName.Text  = registration.CheckManName;
                        this.txtCheckTime.Text     = string.Format("{0:yyyy-MM-dd HH:mm:ss}", registration.CheckTime);
                        this.txtStates.Text        = registration.States;
                        this.ImageUrl              = registration.ImageUrl;
                        this.divImageUrl.InnerHtml = BLL.UploadAttachmentService.ShowAttachment("../", this.ImageUrl);
                    }
                }
            }
        }
Ejemplo n.º 11
0
        protected void Page_Load(object sender, EventArgs e)
        {
            if (!IsPostBack)
            {
                btnClose.OnClientClick = ActiveWindow.GetHideReference();

                if (!string.IsNullOrEmpty(Request.QueryString["userId"]))
                {
                    string userId = Request.QueryString["userId"];

                    LoadData(userId);
                    txtUsername.Readonly = true;
                }
            }
        }
 protected void Page_Load(object sender, EventArgs e)
 {
     if (!IsPostBack)
     {
         btnClose.OnClientClick = ActiveWindow.GetHideReference();
         CheckPowerWithButton("CoreContractSending", btnSaveClose);
         //绑定销售人员
         BindSalerInfo();
         //获取合同信息
         GetOrderInfo();
         BindGrid();
         dpContractDate.Text = DateTime.Now.AddDays(1).ToString("yyyy-MM-dd");
         //dbInstalldate.Text = DateTime.Now.AddDays(2).ToString("yyyy-MM-dd");
     }
 }
Ejemplo n.º 13
0
        private void BindData()
        {
            // 绑定分党委
            this.lblBmmc.Text = TStar.Web.Globals.Account.DeptName;
            string filter = BLL.Globals.SystemSetting.FilterBm;

            TUF.Helper.BindDropDownList(BLL.Globals.SystemCode.DtJd_bm, this.ddlBmbh, "Bmmc", "Pkid", null, filter);

            filter = string.Format("Bmbh IN ('__', '{0}') AND {1}", this.ddlBmbh.SelectedValue, BLL.Globals.SystemSetting.FilterDzb);
            TUF.Helper.BindDropDownList(BLL.Globals.SystemCode.DtJd_dzb, this.ddlDzbbh, "Dzbmc", "Pkid", null, filter);

            this.btnSaveNext.Hidden = !IsAdd;
            // 关闭按钮的客户端脚本
            this.btnClose.OnClientClick = ActiveWindow.GetHideReference();
        }
Ejemplo n.º 14
0
 /// <summary>
 /// 加载页面
 /// </summary>
 /// <param name="sender"></param>
 /// <param name="e"></param>
 protected void Page_Load(object sender, EventArgs e)
 {
     if (!IsPostBack)
     {
         this.btnClose.OnClientClick = ActiveWindow.GetHideReference();
         this.AccidentHandleId       = Request.Params["AccidentHandleId"];
         if (!string.IsNullOrEmpty(this.AccidentHandleId))
         {
             Model.Accident_AccidentHandle accidentHandle = BLL.AccidentHandleService.GetAccidentHandleById(this.AccidentHandleId);
             if (accidentHandle != null)
             {
                 this.txtAccidentHandleCode.Text = BLL.CodeRecordsService.ReturnCodeByDataId(this.AccidentHandleId);
                 this.txtAccidentHandleName.Text = accidentHandle.AccidentHandleName;
                 if (accidentHandle.AccidentDate != null)
                 {
                     this.txtAccidentDate.Text = string.Format("{0:yyyy-MM-dd}", accidentHandle.AccidentDate);
                 }
                 this.txtAccidentDef.Text = accidentHandle.AccidentDef;
                 if (accidentHandle.MoneyLoss != null)
                 {
                     this.txtMoneyLoss.Text = accidentHandle.MoneyLoss.ToString();
                 }
                 if (accidentHandle.WorkHoursLoss != null)
                 {
                     this.txtWorkHoursLoss.Text = accidentHandle.WorkHoursLoss.ToString();
                 }
                 if (accidentHandle.MinorInjuriesPersonNum != null)
                 {
                     this.txtMinorInjuriesPersonNum.Text = accidentHandle.MinorInjuriesPersonNum.ToString();
                 }
                 if (accidentHandle.InjuriesPersonNum != null)
                 {
                     this.txtInjuriesPersonNum.Text = accidentHandle.InjuriesPersonNum.ToString();
                 }
                 if (accidentHandle.DeathPersonNum != null)
                 {
                     this.txtDeathPersonNum.Text = accidentHandle.DeathPersonNum.ToString();
                 }
                 this.txtAccidentHandle.Text = accidentHandle.AccidentHandle;
                 this.txtRemark.Text         = accidentHandle.Remark;
                 this.txtUnitName.Text       = BLL.UnitService.GetUnitNameByUnitId(accidentHandle.UnitId);
             }
         }
         ///初始化审核菜单
         this.ctlAuditFlow.MenuId = BLL.Const.ProjectAccidentHandleMenuId;
         this.ctlAuditFlow.DataId = this.AccidentHandleId;
     }
 }
Ejemplo n.º 15
0
        /// <summary>
        /// 加载页面
        /// </summary>
        /// <param name="sender"></param>
        /// <param name="e"></param>
        protected void Page_Load(object sender, EventArgs e)
        {
            if (!IsPostBack)
            {
                this.btnClose.OnClientClick = ActiveWindow.GetHideReference();
                this.ProjectId = this.CurrUser.LoginProjectId;

                this.drpPersonId.DataValueField = "UserId";
                this.drpPersonId.DataTextField  = "UserName";
                this.drpPersonId.DataSource     = BLL.UserService.GetUserList();
                this.drpPersonId.DataBind();
                Funs.FineUIPleaseSelect(this.drpPersonId);
                this.HealthManageId = Request.Params["HealthManageId"];
                if (!string.IsNullOrEmpty(this.HealthManageId))
                {
                    Model.Administrative_HealthManage healthManage = BLL.HealthManageService.GetHealthManageById(this.HealthManageId);
                    if (healthManage != null)
                    {
                        this.ProjectId = healthManage.ProjectId;
                        if (!string.IsNullOrEmpty(healthManage.PersonId))
                        {
                            this.drpPersonId.SelectedValue = healthManage.PersonId;
                        }
                        if (healthManage.Age != null)
                        {
                            this.txtAge.Text = Convert.ToString(healthManage.Age);
                        }
                        this.txtBloodtype.Text   = healthManage.Bloodtype;
                        this.txtHealthState.Text = healthManage.HealthState;
                        this.txtTaboo.Text       = healthManage.Taboo;
                        if (healthManage.CheckTime != null)
                        {
                            this.txtCheckTime.Text = string.Format("{0:yyyy-MM-dd}", healthManage.CheckTime);
                        }
                        this.txtRemark.Text = healthManage.Remark;
                    }
                }
                else
                {
                    this.txtCheckTime.Text = string.Format("{0:yyyy-MM-dd}", DateTime.Now);
                }
                ///初始化审核菜单
                this.ctlAuditFlow.MenuId    = BLL.Const.HealthManageMenuId;
                this.ctlAuditFlow.DataId    = this.HealthManageId;
                this.ctlAuditFlow.ProjectId = this.ProjectId;
                this.ctlAuditFlow.UnitId    = this.CurrUser.UnitId;
            }
        }
Ejemplo n.º 16
0
        protected void Page_Load(object sender, EventArgs e)
        {
            if (!IsPostBack)
            {
                //权限检查
                CheckPowerWithButton("CoreVIPEdit", btnSaveClose);

                lblDate.Text = DateTime.Now.ToString("yyyy-MM-dd HH:mm:ss");
                if (action == "edit")
                {
                    Bind();
                }

                btnClose.OnClientClick = ActiveWindow.GetHideReference();
            }
        }
Ejemplo n.º 17
0
        protected void btnSaveClose_Click(object sender, EventArgs e)
        {
            StringBuilder sbValue = new StringBuilder();
            StringBuilder sbText  = new StringBuilder();

            foreach (CheckItem item in cblRole.SelectedItemArray)
            {
                sbValue.AppendFormat("{0},", item.Value);
                sbText.AppendFormat("{0},", item.Text);
            }
            string roleValues = sbValue.ToString().TrimEnd(',');
            string roleTexts  = sbText.ToString().TrimEnd(',');

            PageContext.RegisterStartupScript(ActiveWindow.GetWriteBackValueReference(roleValues, roleTexts)
                                              + ActiveWindow.GetHideReference());
        }
Ejemplo n.º 18
0
        private void BindData()
        {
            // 绑定分党委
            this.lblBmmc.Text = TStar.Web.Globals.Account.DeptName;
            string filter = BLL.Globals.SystemSetting.FilterBm;

            TUF.Helper.BindDropDownList(BLL.Globals.SystemCode.DtJd_bm, this.ddlBmbh, "Bmmc", "Pkid", null, filter);

            filter = string.Format("Bmbh='{0}' AND {1}", this.ddlBmbh.SelectedValue, BLL.Globals.SystemSetting.FilterDzb);
            TUF.Helper.BindCheckBoxList(BLL.Globals.SystemCode.DtJd_dzb, this.cblDzbbh, "Dzbmc", "Pkid", null, filter);

            //btnDownload.OnClientClick = this.cblDzbbh.SelectedValueArray.GetNoSelectionAlertReference("请至少选择一项!");

            // 关闭按钮的客户端脚本
            this.btnClose.OnClientClick = ActiveWindow.GetHideReference();
        }
Ejemplo n.º 19
0
 protected void Page_Load(object sender, EventArgs e)
 {
     if (!IsPostBack)
     {
         btnClose.OnClientClick = ActiveWindow.GetHideReference();
         CheckPowerWithButton("CoreFlavorEdit", btnSaveClose);
         //绑定菜品单位
         BindDDL();
         //绑定打印机
         BindPrint();
         //绑定出库库房
         BindWH();
         //加载数据
         Bind();
     }
 }
Ejemplo n.º 20
0
        private void LoadData()
        {
            btnClose.OnClientClick = ActiveWindow.GetHideReference();


            _deptID = GetQueryIntValue("ids");

            // 绑定列表
            BindGrid();

            // 初始化选中项,放在表格数据绑定之后
            if (_selectedRowIndex != -1)
            {
                Grid1.SelectedRowIndex = _selectedRowIndex;
            }
        }
Ejemplo n.º 21
0
 protected void Page_Load(object sender, EventArgs e)
 {
     if (!IsPostBack)
     {
         btnClose.OnClientClick = ActiveWindow.GetHideReference();
         if (OrderID <= 0)
         {
             // 参数错误,首先弹出Alert对话框然后关闭弹出窗口
             Alert.Show("参数错误,订单号不存在!", String.Empty, ActiveWindow.GetHideReference());
         }
         else
         {
             GetOrderInfo();
         }
     }
 }
Ejemplo n.º 22
0
        private void LoadData()
        {
            btnClose.OnClientClick = ActiveWindow.GetHideReference();
            int id = GetQueryIntValue("id");

            if (id > 0)
            {
                Infobasis.Data.DataEntity.SMSTemplate data = DB.SMSTemplates.Find(id);
                if (data != null)
                {
                    tbxName.Text       = data.Name;
                    tbxContent.Text    = data.Content;
                    cbxEnabled.Checked = data.IsActive;
                }
            }
        }
Ejemplo n.º 23
0
 protected void Page_Load(object sender, EventArgs e)
 {
     if (!IsPostBack)
     {
         btnClose.OnClientClick = ActiveWindow.GetHideReference();
         CheckPowerWithButton("CoreContractEdit", btnSaveClose);
         //绑定销售人员
         BindSalerInfo();
         //获取合同信息
         GetOrderInfo();
         if (ActionType == 1)
         {
             FormRowState.Hidden = true;
         }
     }
 }
Ejemplo n.º 24
0
 protected void btnSaveClose_Click(object sender, EventArgs e)
 {
     if (!VerifyPurview(",SR-ADDUSER,"))
     {
         Alert.ShowInParent(CHECK_POWER_FAIL_ACTION_MESSAGE);
         return;
     }
     if (roleId > 0)
     {
         SyncSelectedRowIndexArrayToHiddenField();
         List <string> ids = FineUIGridCommon.GetSelectedIDsFromHiddenField(hfSelectedIDS);
         if (ids != null && ids.Count > 0)
         {
             int result = 0;
             using (DataTable dt = new DataTable())
             {
                 dt.Columns.Add("roleid", typeof(int));
                 dt.Columns.Add("userid", typeof(int));
                 foreach (string userid in ids)
                 {
                     DataRow dr = dt.NewRow();
                     dr[0] = roleId;
                     dr[1] = userid;
                     dt.Rows.Add(dr);
                 }
                 result = new UserRoleBLL().BatchSave(dt);
             }
             if (result > 0)
             {
                 PageContext.RegisterStartupScript(ActiveWindow.GetHidePostBackReference());
             }
             else
             {
                 Alert.ShowInParent("添加角色用户失败!");
             }
         }
         else
         {
             PageContext.RegisterStartupScript(ActiveWindow.GetHideReference());
         }
     }
     else
     {
         // 参数错误,首先弹出Alert对话框然后关闭弹出窗口
         Alert.Show("参数错误!", String.Empty, ActiveWindow.GetHideReference());
     }
 }
Ejemplo n.º 25
0
 protected override void OnLoad(EventArgs e)
 {
     if (!Page.IsPostBack)
     {
         btnClose.OnClientClick = ActiveWindow.GetHideReference();
         if (Request.QueryString["SMS_ID"] != null && Request.QueryString["SMS_ID"].ToString().Trim() != "")
         {
             XASYU.MODEL.TABLE_SMSModel temp = new XASYU.MODEL.TABLE_SMSModel();
             temp.SMS_id = int.Parse(Request.QueryString["SMS_ID"].ToString().Trim());
             int     iCount = -1;
             DataSet ds     = XASYU.BLL.DataBaseQuery.query_TABLE_SMS(userBean, temp, ref iCount, 0, 10);
             if (ds != null && ds.Tables.Count > 0 && ds.Tables[0] != null && ds.Tables[0].Rows.Count > 0)
             {
                 DataRow dr = ds.Tables[0].Rows[0];
                 this.hiddenSMS_id.Text           = dr["SMS_id"].ToString();
                 this.txtSMS_jsr.Text             = dr["SMS_jsr"].ToString();
                 this.txtSMS_nr.Text              = dr["SMS_nr"].ToString();
                 this.ddlSMS_ljfs.SelectedValue   = dr["SMS_ljfs"].ToString();
                 this.dthSMS_fstime.SelectedDate  = DateTime.Parse(dr["SMS_fstime"].ToString());
                 this.dthSMS_dstime.SelectedDate  = DateTime.Parse(dr["SMS_dstime"].ToString());
                 this.txtSMS_dxlx.Text            = dr["SMS_dxlx"].ToString();
                 this.ddlSMS_dxzt.SelectedValue   = dr["SMS_dxzt"].ToString();
                 this.ddlSMS_hzzt.SelectedValue   = dr["SMS_hzzt"].ToString();
                 this.txtSMS_wapdx.Text           = dr["SMS_wapdx"].ToString();
                 this.ddlSMS_fjname.SelectedValue = dr["SMS_fjname"].ToString();
                 this.ddlSMS_zchf.SelectedValue   = dr["SMS_zchf"].ToString();
                 this.ddlSMS_ztbg.SelectedValue   = dr["SMS_ztbg"].ToString();
                 this.ddlSMS_hftx.SelectedValue   = dr["SMS_hftx"].ToString();
                 this.txtSMS_hmd.Text             = dr["SMS_hmd"].ToString();
                 this.ddlSMS_sfzf.SelectedValue   = dr["SMS_sfzf"].ToString();
                 this.ddlSMS_delete.SelectedValue = dr["SMS_delete"].ToString();
             }
             else
             {
                 //this.hiddenSMS_id.Value ="0" ;
                 this.dthSMS_fstime.SelectedDate = DateTime.Now;
                 this.dthSMS_dstime.SelectedDate = DateTime.Now;
             }
         }
         else
         {
             //this.hiddenSMS_id.Value ="0" ;
             this.dthSMS_fstime.SelectedDate = DateTime.Now;
             this.dthSMS_dstime.SelectedDate = DateTime.Now;
         }
     }
 }
    protected void btnSave_Click(object sender, EventArgs e)
    {
        try
        {
            FineOffice.Modules.OA_FlowProcess model = processBll.GetModel(p => p.ID == txtID.Text);
            model.ProcessPersonnel  = hiddenPersonnel.Text;
            model.ProcessDepartment = hiddenDepartment.Text;
            string[] oprate = chkOprate.SelectedValueArray;

            if (oprate.Contains("AllowRefuse"))
            {
                model.AllowRefuse = true;
            }
            else
            {
                model.AllowRefuse = false;
            }

            if (oprate.Contains("AllowGoBack"))
            {
                model.AllowGoBack = true;
            }
            else
            {
                model.AllowGoBack = false;
            }

            if (oprate.Contains("Feedback"))
            {
                model.Feedback = true;
            }
            else
            {
                model.Feedback = false;
            }

            model.TimeLimit = int.Parse(txtTimeLimit.Text);
            model.Remind    = int.Parse(txtRemind.Text);
            processBll.Update(model);
            PageContext.RegisterStartupScript(ActiveWindow.GetHideReference());
        }
        catch (Exception ex)
        {
            Alert.ShowInParent(ex.Message);
        }
    }
Ejemplo n.º 27
0
        private void LoadData()
        {
            btnClose.OnClientClick = ActiveWindow.GetHideReference();

            int   id      = GetQueryIntValue("id");
            Title current = DB.Titles.Find(id);

            if (current == null)
            {
                // 参数错误,首先弹出Alert对话框然后关闭弹出窗口
                Alert.Show("参数错误!", String.Empty, ActiveWindow.GetHideReference());
                return;
            }

            tbxName.Text   = current.Name;
            tbxRemark.Text = current.Remark;
        }
Ejemplo n.º 28
0
        private void LoadData()
        {
            btnClose.OnClientClick = ActiveWindow.GetHideReference();

            int id = GetQueryIntValue("id");

            TSM.Model.CK_ProductType modelCK_ProductType = m_bllCK_ProductType.GetModel(id);

            if (modelCK_ProductType == null)
            {
                // 参数错误,首先弹出Alert对话框然后关闭弹出窗口
                Alert.Show("参数错误!", String.Empty, ActiveWindow.GetHideReference());
                return;
            }

            tbxName.Text = modelCK_ProductType.CK_ProductTypeName;
        }
Ejemplo n.º 29
0
        private void LoadData()
        {
            //btnClose.OnClientClick = ActiveWindow.GetHideReference();
            int eeID = GetQueryIntValue("id");

            Infobasis.Data.DataEntity.User user = DB.Users
                                                  .Where(u => u.ID == eeID).FirstOrDefault();
            if (user == null)
            {
                // 参数错误,首先弹出Alert对话框然后关闭弹出窗口
                Alert.Show("参数错误!", String.Empty, ActiveWindow.GetHideReference());
                return;
            }
            labName.Text   = user.ChineseName;
            labEECode.Text = user.EmployeeCode;
            DropDownChangeHireStatus.SelectedValue = user.HireStatus.HasValue ? user.HireStatus.Value.ToString() : "0";
        }
Ejemplo n.º 30
0
 protected void Page_Load(object sender, EventArgs e)
 {
     if (!IsPostBack)
     {
         if (Request.QueryString["bm"] != null && Request.QueryString["bm"].ToString() != "")
         {
             hfdDept.Text = Request.QueryString["bm"].ToString();
         }
         if (Request.QueryString["cx"] != null && Request.QueryString["cx"].ToString() != "")
         {
             btnUpt.Hidden = false;
         }
         DataSearch();
         btnClose.OnClientClick = ActiveWindow.GetHideReference();
         BillBase.Grid_Goods    = GridGoods;
     }
 }