Beispiel #1
0
        public void btn_submit_Click(object sender, EventArgs e)
        {
            WebModels.Tbl_Config config = WebBLL.Tbl_ConfigManager.GetTbl_ConfigById(1);
            config.C_Set1   = WebCommon.Public.ListBoxValuesGet(C_Set1);
            config.C_Set2   = WebCommon.Public.ListBoxValuesGet(C_Set2);
            config.C_Set3   = C_Set3.Text;
            config.C_Set4   = WebCommon.Public.ListBoxValuesGet(C_Set4);
            config.C_Set5   = WebCommon.Public.ListBoxValuesGet(C_Set5);
            config.C_Set6   = C_Set6.Text;
            config.C_Set7   = C_Set7.Text;
            config.C_Set8   = C_Set8.Text;
            config.C_Set9   = WebCommon.Public.ListBoxValuesGet(C_Set9);
            config.C_Set10  = WebCommon.Public.ListBoxValuesGet(C_Set10);
            config.C_Set11  = C_Set11.Text;
            config.C_Set12  = C_Set12.Text;
            config.C_Set13  = C_Set13.Text;
            config.C_Set14  = C_Set14.Text;
            config.C_Set15  = C_Set15.Text;
            config.DealTime = DateTime.Now;
            config.DealUser = WebCommon.Public.GetUserName();
            int count = WebBLL.Tbl_ConfigManager.UpdateTbl_Config(config);

            if (count > 0)
            {
                ScriptManager.RegisterStartupScript(this, this.GetType(), "message", "alert('修改成功!');window.external.reload();window.external.close();", true);
            }
            else
            {
                ScriptManager.RegisterStartupScript(this, this.GetType(), "message", "alert('修改失败!');", true);
            }
        }
Beispiel #2
0
        protected void btn_tg_Click(object sender, EventArgs e)
        {
            int ID = Convert.ToInt32(Request.QueryString["id"]);

            WebModels.Tbl_Info info = WebBLL.Tbl_InfoManager.GetTbl_InfoById(ID);
            switch (info.NodeStatus)
            {
            case "部门主管审核":
                if (info.I_Type == "一般信息")
                {
                    info.Status     = "已审核";
                    info.NodeStatus = "已审核";    // "部门经理审批";
                    WebModels.Tbl_User user = WebBLL.Tbl_UserManager.GetTbl_UserDepartManager(WebCommon.Public.GetUserName());
                    info.NodeUser = user.UserName;
                }
                else
                {
                    info.NodeUser   = info.UserName;
                    info.Status     = "已审核";
                    info.NodeStatus = "已审核";    // "院长审批";
                    WebModels.Tbl_Config cofig = WebBLL.Tbl_ConfigManager.GetTbl_ConfigById(1);
                    info.NodeUser = cofig.C_Set4;
                }
                break;

            case "部门经理审批":
                info.NodeStatus = "信息登记审核";
                WebModels.Tbl_Config config = WebBLL.Tbl_ConfigManager.GetTbl_ConfigById(1);
                info.NodeUser = config.C_Set2;
                break;

            case "院长审批":
                info.NodeStatus = "信息登记审核";
                WebModels.Tbl_Config config1 = WebBLL.Tbl_ConfigManager.GetTbl_ConfigById(1);
                info.NodeUser = config1.C_Set2;
                break;

            case "信息登记审核":
                info.NodeStatus = "已审核";
                info.NodeUser   = info.UserName;
                info.Status     = "已审核";
                break;
            }
            int count = WebBLL.Tbl_InfoManager.UpdateTbl_Info(info);

            if (count > 0)
            {
                ScriptManager.RegisterStartupScript(this, this.GetType(), "message", "alert('操作成功!');window.external.reload();window.external.close();", true);
            }
            else
            {
                ScriptManager.RegisterStartupScript(this, this.GetType(), "message", "alert('操作失败!');", true);
            }
        }
Beispiel #3
0
 public void ReadValue()
 {
     WebModels.Tbl_Config config = WebBLL.Tbl_ConfigManager.GetTbl_ConfigById(1);
     WebCommon.Public.ListBoxValuesSet(C_Set1, config.C_Set1);
     WebCommon.Public.ListBoxValuesSet(C_Set2, config.C_Set2);
     C_Set3.Text = config.C_Set3;
     WebCommon.Public.ListBoxValuesSet(C_Set4, config.C_Set4);
     WebCommon.Public.ListBoxValuesSet(C_Set5, config.C_Set5);
     WebCommon.Public.ListBoxValuesSet(C_Set6, config.C_Set6);
     WebCommon.Public.ListBoxValuesSet(C_Set7, config.C_Set7);
     WebCommon.Public.ListBoxValuesSet(C_Set8, config.C_Set8);
     WebCommon.Public.ListBoxValuesSet(C_Set9, config.C_Set9);
     WebCommon.Public.ListBoxValuesSet(C_Set10, config.C_Set10);
     C_Set11.Text = config.C_Set11;
     C_Set12.Text = config.C_Set12;
     C_Set13.Text = config.C_Set13;
     C_Set14.Text = config.C_Set14;
     C_Set15.Text = config.C_Set15;
 }