예제 #1
0
        protected void Page_Load(object sender, EventArgs e)
        {
            if (!IsPostBack)
            {
                //判断当前页面是从哪个入口进来的,PageRole=manage是可以进行操作,如果不是则只能查看 2012-4-13修改
                if (Request["PageRole"] != null)
                {
                    PageRole = common.cleanXSS(Request["PageRole"].ToString());
                }

                string id = Request["id"].ToString();

                //显示部门子项目预算的基本信息
                ShowInitInfo(id);

                BindData(id);

                if (null != Request["role"] && Request["role"].ToString().Equals("manager"))
                {
                    td_left.Visible = false;
                    /*设置模板页中的管理值*/
                    (Master.FindControl("Label_navigation") as Label).Text = "经费 > 部门预算查询 > 父项目经费明细";
                    /*设置模板页中的管理值*/
                }
                else
                {
                    td_left.Visible = true;
                    /*设置模板页中的管理值*/
                    (Master.FindControl("Label_navigation") as Label).Text = "管理 > 财务管理 > 部门预算管理 > 父项目经费明细";
                    /*设置模板页中的管理值*/
                }
            }
        }
예제 #2
0
        protected void Page_Load(object sender, EventArgs e)
        {
            if (!IsPostBack)
            {
                //判断当前页面是从哪个入口进来的,PageRole=manage是可以进行操作,如果不是则只能查看 2012-4-13修改
                if (Request["PageRole"] != null)
                {
                    PageRole = common.cleanXSS(Request["PageRole"].ToString());
                }

                string id = Request["id"].ToString();
                //显示资金卡的基本信息
                ShowInitInfo(id);
                BindData(id);

                if (null != Request["role"] && Request["role"].ToString().Equals("manager"))
                {
                    td_left.Visible   = false;
                    Button_jz.Visible = false;
                    //Button_cancel.Visible = false;
                    /*设置模板页中的管理值*/
                    (Master.FindControl("Label_navigation") as Label).Text = "经费 > 资金卡查询 > 资金卡明细";
                    /*设置模板页中的管理值*/
                }
                else
                {
                    td_left.Visible   = true;
                    Button_jz.Visible = true;
                    //Button_cancel.Visible = true;
                    /*设置模板页中的管理值*/
                    (Master.FindControl("Label_navigation") as Label).Text = "管理 > 财务管理 > 资金卡明细";
                    /*设置模板页中的管理值*/
                }

                switch (PageRole)
                {
                case "viewer":
                    OAleftmenu_Show1.Visible = true;
                    ShowButton(false);
                    break;

                case "manage":
                    OAleftmenu1.Visible = true;
                    ShowButton(true);
                    break;

                default:   //付全文    2013-4-16   其他权限人员无记账功能
                    this.Button_jz.Visible            = false;
                    this.ViewState["showHistoryGoto"] = 1;
                    break;
                }
            }
        }
        protected void Page_Load(object sender, EventArgs e)
        {
            if (!IsPostBack)
            {
                //判断当前页面是从哪个入口进来的,PageRole=manage是可以进行操作,如果不是则只能查看 2012-4-13修改
                if (Request["PageRole"] != null)
                {
                    PageRole = common.cleanXSS(Request["PageRole"].ToString());
                }

                if (Request["snm"] != null)
                {
                    snm = common.cleanXSS(Request["snm"].ToString());
                }

                this.txtJF.Text = snm;

                if (Request["nowPaging"] != null)
                {
                    nowPaging = common.cleanXSS(Request["nowPaging"].ToString());
                }

                SetRowCount();

                BindData();

                if (null != Request["role"] && Request["role"].ToString().Equals("manager"))
                {
                    td_left.Visible = false;
                    /*设置模板页中的管理值*/
                    //(Master.FindControl("Label_navigation") as Label).Text = "经费 > 资金卡查询 > 资金卡汇总统计";
                    /*设置模板页中的管理值*/
                }
                else
                {
                    td_left.Visible = true;
                    /*设置模板页中的管理值*/
                    (Master.FindControl("Label_navigation") as Label).Text = "管理 > 财务管理 > 部门预算汇总统计";
                    /*设置模板页中的管理值*/
                }

                switch (PageRole)
                {
                case "viewer":
                    OAleftmenu_Show1.Visible = true;
                    break;

                default:                            //付全文    2013-4-16   其他权限人员无记账功能
                    this.ViewState["showHistoryGoto"] = 1;
                    break;
                }
            }
        }
예제 #4
0
        protected void GetddlStatas()
        {
            DDL_Status.Items.Add(new ListItem("-全部-", ""));
            ListItem li = new ListItem("待审核", "0");

            this.DDL_Status.Items.Add(li);
            li = new ListItem("审核通过", "1");
            this.DDL_Status.Items.Add(li);
            li = new ListItem("审核不通过", "2,23");
            this.DDL_Status.Items.Add(li);
            li = new ListItem("分管领导审核通过", "3");
            this.DDL_Status.Items.Add(li);

            if (Request.Params["Status"] != null && !String.IsNullOrEmpty(Request["Status"]))
            {
                this.DDL_Status.SelectedValue = common.cleanXSS(Request["Status"]);
            }
            else
            {
                this.DDL_Status.SelectedValue = "";
            }

            //如果是财务只能查看审核通过的
            if (null != Request["role"] && Request["role"].ToString().Equals("lister"))
            {
                DDL_Status.SelectedValue = "1";
                DDL_Status.Enabled       = false;
            }
        }
예제 #5
0
        protected void Page_Load(object sender, EventArgs e)
        {
            if (!IsPostBack)
            {
                Model.USER_Users user_model = (Model.USER_Users)Session["USER_Users"];
                string           userid     = "1";
                if (null != user_model)
                {
                    userid = user_model.ID.ToString();
                }
                //加载所属项目列表
                ShowProjectList(userid);
                //加载预算审批人
                ShowAssignCheckerList();


                //说明是编辑过来的
                if (null != Request["ID"] && !Request["ID"].ToString().Equals(""))
                {
                    ShowInitInfor(common.cleanXSS(Request["ID"].ToString()));
                    LB_file.Visible = true;

                    //设置模板页中的管理值
                    (Master.FindControl("Label_navigation") as Label).Text = "经费 > 预算申请 > 编辑申请 ";
                    //设置模板页中的管理值
                }
                else
                {
                    LB_file.Visible = false;
                    //设置模板页中的管理值
                    (Master.FindControl("Label_navigation") as Label).Text = "经费 > 预算申请 > 新建申请 ";
                    //设置模板页中的管理值
                }
            }
        }
예제 #6
0
        protected void Page_Load(object sender, EventArgs e)
        {
            if (!IsPostBack)
            {
                Model.USER_Users user_model = (Model.USER_Users)Session["USER_Users"];
                string           userid     = "1";
                if (null != user_model)
                {
                    userid = user_model.ID.ToString();
                }

                //加载预算审批人
                ShowAssignCheckerList();

                ShowDepartments();

                ShowManagers();

                //说明是编辑过来的
                if (null != Request["ID"] && !Request["ID"].ToString().Equals(""))
                {
                    ShowInitInfor(common.cleanXSS(Request["ID"].ToString()));
                    //        LB_file.Visible = true;

                    //        //设置模板页中的管理值
                    //        (Master.FindControl("Label_navigation") as Label).Text = "经费 > 预算申请 > 编辑申请 ";
                    //        //设置模板页中的管理值
                    //    }
                    //    else
                    //    {
                    //        LB_file.Visible = false;
                    //        //设置模板页中的管理值
                    //        (Master.FindControl("Label_navigation") as Label).Text = "经费 > 预算申请 > 新建申请 ";
                    //        //设置模板页中的管理值
                }
                else                 // 新增
                {
                    //显示详细插件
                    budgetDetails.main("");
                }
            }
            else
            {
                budgetDetails.main("");
            }
        }
예제 #7
0
        protected void Page_Load(object sender, EventArgs e)
        {
            if (!IsPostBack)
            {
                //项目ID
                string ID = common.cleanXSS(Request["ID"]);
                Session["Work_ProjectId"] = ID;
                ShowProjectInfo(ID);

                //初始化资金卡下拉列表
                SetDDL_CashCardID();

                //设置模板页中的管理值
                (Master.FindControl("Label_navigation") as Label).Text = "管理 > 预算管理 > 预算审核";
                //设置模板页中的管理值
            }
        }
예제 #8
0
        protected void Page_Load(object sender, EventArgs e)
        {
            if (!IsPostBack)
            {
                Model.USER_Users user_model = (Model.USER_Users)Session["USER_Users"];
                string           userid     = "1";
                if (null != user_model)
                {
                    userid = user_model.ID.ToString();
                }

                //加载所属项目列表
                ShowParentBudgetList(userid);
                //加载预算审批人
                ShowAssignCheckerList();

                ShowDepartments();

                ShowManagers();

                //说明是编辑过来的
                if (null != Request["ID"] && !Request["ID"].ToString().Equals(""))
                {
                    ShowInitInfor(common.cleanXSS(Request["ID"].ToString()));
                }
                else                 // 新增
                {
                    ParentId = Request["parentId"];

                    //显示详细插件
                    budgetDetails.main("");
                }
            }
            else
            {
                budgetDetails.main("");
            }
        }
예제 #9
0
        protected void Page_Load(object sender, EventArgs e)
        {
            if (!IsPostBack)
            {
                //判断当前页面是从哪个入口进来的,role=manage是可以进行操作,如果不是则只能查看 2012-4-13修改
                if (Request["role"] != null)
                {
                    PageRole = common.cleanXSS(Request["role"].ToString());
                }
                if (PageRole == "viewer")
                {
                    OAleftmenu_Show1.Visible = true;
                    ShowButton(false);
                }
                else
                {
                    OAleftmenu1.Visible = true;
                    ShowButton(true);
                }
                //string objName = "信息发布";
                //LB_name.Text = objName;
                getSearchCardModel();//将历史的数据回显出来
                string count = dtrowsHidden.Value.ToString();
                if (count.Length == 0)
                {
                    setRowCout();//获取当前状态下有多少条数据记录,为分页提供页数和全部条数服务
                    count = dtrowsHidden.Value.ToString();
                }
                else
                {
                    count = "0";
                }
                int    countint  = int.Parse(count);
                string pageindex = null;//这里是为分页服务的
                pageindex = Request["pageindex"];
                if (pageindex == null || pageindex == "")
                {
                    pageindex = "1";
                }
                int pageindex_int = int.Parse(pageindex);
                SetCardMessage();
                BindData(pageindex_int);

                /*设置模板页中的管理值*/
                (Master.FindControl("Label_navigation") as Label).Text = "管理 > 财务管理 ";
                /*设置模板页中的管理值*/
            }
        }
예제 #10
0
        protected void Page_Load(object sender, EventArgs e)
        {
            if (!IsPostBack)
            {
                Model.USER_Users user_model = (Model.USER_Users)Session["USER_Users"];
                string           userid     = "1";
                if (null != user_model)
                {
                    userid = user_model.ID.ToString();
                }

                //加载预算审批人
                ShowAssignCheckerList();

                string id = Request["ID"];

                //    //说明是编辑过来的
                if (!string.IsNullOrEmpty(id))
                {
                    ShowInitInfor(common.cleanXSS(id));

                    BindChildBudgetList(int.Parse(id));

                    LB_BudgetLimit.Text = GetParentBudgetBalance(id).ToString();
                }
                else
                {
                    //        LB_file.Visible = false;
                    //        //设置模板页中的管理值
                    //        (Master.FindControl("Label_navigation") as Label).Text = "经费 > 预算申请 > 新建申请 ";
                    //        //设置模板页中的管理值

                    LB_BudgetLimit.Text = "0万元";
                }

                // 显示部门
                ShowDepartments();

                // 显示部门人员
                ShowUserWhenDepartmentChanged();
            }
        }
예제 #11
0
        /// <summary>
        ///点击确定按钮触发的事件
        /// </summary>
        /// <param name="sender"></param>
        /// <param name="e"></param>
        protected void Button_sumbit_Click(object sender, EventArgs e)
        {
            string NAME = this.txtNAME.Text;//获取到用户名

            if (NAME != "" && NAME != null)
            {
                try
                {
                    mNews_News          = new Dianda.Model.News_News();
                    mNews_News          = bNews_News.GetModel(Int32.Parse(Request["id"]));
                    mNews_News.NAME     = txtNAME.Text;
                    mNews_News.PARENTID = Int32.Parse(ddlPARENTID.SelectedValue);
                    mNews_News.DATETIME = DateTime.Now;
                    mNews_News.CONTENTS = this.FCKeditor_neirong.Value;
                    // mNews_News.TYPE = 0;
                    mNews_News.KEYWORD = txtNAME.Text;
                    mNews_News.WRITER  = ((Model.USER_Users)Session["USER_Users"]).USERNAME;
                    //mNews_News.FILEUP = "";//上传附件/AllFileUp/admin/news/目录下
                    mNews_News.UPTOP        = 0;
                    mNews_News.DELFLAG      = 0;
                    mNews_News.ISPASS       = 0;//是否通过审核(默认0,1表示通过审核,2表示审核不通过)添加新闻时,需要根据选择栏目的审核设定进行赋值
                    mNews_News.LimitsChoose = Int32.Parse(this.rblLimitsChoose.SelectedValue);
                    bNews_News.Update(mNews_News);

                    string strSQL = "DELETE FROM News_LimitUser WHERE NewsID=" + common.cleanXSS(Request["id"]);
                    pageControl.doSql(strSQL);

                    // 添加News_LimitUser
                    ArrayList arrUserID = UserManage1.getSelectUser();

                    // 清除旧信息
                    string strSQL2 = "Update FaceShowMessage set Delflag=1 Where NewsType='项目消息' and URLS like '%id=" + common.cleanXSS(Request["id"]) + "''%'";
                    pageControl.doSql(strSQL2);

                    if (arrUserID.Count > 0)
                    {
                        for (int k = 0; k < arrUserID.Count; k++)
                        {
                            mNews_LimitUser        = new Dianda.Model.News_LimitUser();
                            mNews_LimitUser.ID     = bNews_LimitUser.GetMaxId();
                            mNews_LimitUser.UserID = arrUserID[k].ToString();
                            mNews_LimitUser.NewsID = Int32.Parse(Request["id"]);
                            mNews_LimitUser.IsRead = 0;
                            bNews_LimitUser.Add(mNews_LimitUser);

                            /*给业务申请者发信息*/
                            Model.FaceShowMessage mFaceShowMessage = new Dianda.Model.FaceShowMessage();
                            BLL.FaceShowMessage   bFaceShowMessage = new Dianda.BLL.FaceShowMessage();



                            mFaceShowMessage.DATETIME = DateTime.Now;
                            // mFaceShowMessage.FromTable = this.ddlPARENTID.SelectedItem.Text;
                            mFaceShowMessage.FromTable = "项目消息";
                            mFaceShowMessage.IsRead    = 0;
                            mFaceShowMessage.NewsID    = null;
                            //mFaceShowMessage.NewsType = this.ddlPARENTID.SelectedItem.Text;
                            mFaceShowMessage.NewsType = "项目消息";
                            mFaceShowMessage.ReadTime = null;
                            mFaceShowMessage.Receive  = arrUserID[k].ToString();
                            //mFaceShowMessage.URLS = ((Model.USER_Users)Session["USER_Users"]).REALNAME + "(" + ((Model.USER_Users)Session["USER_Users"]).USERNAME.ToString() + ")给您发送了[" + this.ddlPARENTID.SelectedItem.Text + "]!<a href='/Admin/newsManage/OAnews/show.aspx?id=" + intMaxID + "' target='_self' rel='gb_page_center[726,400]' title='查看详细'>点击查看</a>";
                            mFaceShowMessage.URLS      = " <a href=\"javascript:window.showModalDialog('/Admin/newsManage/OAnews/show.aspx?id=" + Request["id"] + " ','','dialogWidth=726px;dialogHeight=400px');\" target='_self'  title='发布时间:" + DateTime.Now.ToString() + "'>" + NAME + "</a>&nbsp;" + ddlPARENTID.SelectedItem.Text + "&nbsp;项目消息&nbsp;(" + ((Model.USER_Users)Session["USER_Users"]).REALNAME.ToString() + ")";
                            mFaceShowMessage.ProjectID = int.Parse(Session["Work_ProjectId"].ToString());
                            mFaceShowMessage.DELFLAG   = 0;

                            bFaceShowMessage.Add(mFaceShowMessage);
                            /*给业务申请者发信息*/
                        }
                    }
                    //tag.Text = "操作成功!";
                    string coutws = "<script language=\"javascript\" type=\"text/javascript\">alert(\"操作成功!现在进入列表页面\"); location.href = \"manage.aspx?pageindex=" + Request["pageindex"] + "&status=" + Request["status"] + "\";</script>";
                    Response.Write(coutws);

                    //添加操作日志
                    Dianda.BLL.SYS_LogsExt bsyslog    = new Dianda.BLL.SYS_LogsExt();
                    Model.USER_Users       user_model = (Model.USER_Users)Session["USER_Users"];
                    bsyslog.addlogs(((Model.USER_Users)Session["USER_Users"]).REALNAME + "(" + ((Model.USER_Users)Session["USER_Users"]).USERNAME + ")", "添加新闻", "添加成功");
                    //添加操作日志
                }
                catch
                {
                    tag.Text = "操作失败,请重试!";
                }
            }
            else
            {
                tag.Text = "操作失败,标题不能为空!";
            }
        }