Пример #1
0
        protected void save_close_Click(object sender, EventArgs e)
        {
            PurchasingTeamDto pageDto = AssembleModel <PurchasingTeamDto>();

            pageDto.ids    = Request.Form["to[]"];
            pageDto.emails = Request.Form["emails"];
            setBll.ChangeSetValue((long)SysSettingEnum.PURCHASING_TEAM, new Tools.Serialize().SerializeJson(pageDto), LoginUserId);
            ClientScript.RegisterStartupScript(this.GetType(), "提示信息", $"<script>alert('保存成功!');self.opener.location.reload();window.close();</script>");
        }
Пример #2
0
        protected void Page_Load(object sender, EventArgs e)
        {
            var thisSet = setBll.GetSetById(SysSettingEnum.PURCHASING_TEAM);

            if (thisSet != null && !string.IsNullOrEmpty(thisSet.setting_value))
            {
                dto = new Tools.Serialize().DeserializeJson <PurchasingTeamDto>(thisSet.setting_value);
            }
            if (dto == null)
            {
                dto = new PurchasingTeamDto();
            }
        }