コード例 #1
0
    protected void Button1_Click(object sender, EventArgs e)
    {
        if (Page.IsValid)
        {
            Hashtable ht = new Hashtable();
            ht["remark"] = this.remark.Text.Trim();
            ht["zeren"]  = User.Identity.Name;
            ht["time1"]  = DateTime.Now.ToString();
            ht["ps"]     = this.piyue.SelectedValue;

            if (Request["bkind"].ToString() == "0")
            {
                U_ZCSPBU sp1   = new U_ZCSPBU();
                string   info1 = sp1.PiYueZcForSH1(ViewState["id"].ToString(), ht);
                sp1.Close();
                PubComm.ShowInfo(info1, Application["root"] + "/ZcMng2/ZcDetail3.aspx?id=" + ViewState["zcid"].ToString());
            }
            else
            {
                U_ZCBSPBU sp2   = new U_ZCBSPBU();
                string    info2 = sp2.PiYueZcForSH1(ViewState["id"].ToString(), ht, ViewState["zcid"].ToString());
                sp2.Close();
                PubComm.ShowInfo(info2, Application["root"] + "/ZcMng2/ZcBaoDetail3.aspx?id=" + ViewState["zcid"].ToString());
            }
        }
    }
コード例 #2
0
    /// <summary>
    /// 审核委员会成员审核
    /// </summary>
    /// <param name="id"></param>
    private void SehenPiForShenHeWeiYuanHui(String id, String dotime1)
    {
        if (this.piyue2.SelectedValue == String.Empty)
        {
            Util.alert(this.Page, "错误:请选择一个审批意见!");
        }
        else
        {
            Hashtable ht = new Hashtable();
            ht["remark"] = this.remark.Text.Trim();
            ht["zeren"]  = User.Identity.Name;
            if (String.IsNullOrEmpty(dotime1))
            {
                ht["time1"] = DateTime.Now.ToString();
            }
            else
            {
                ht["time1"] = dotime1;
            }
            ht["ps"] = this.piyue2.SelectedValue;

            String domen1 = this.CheckShenHeWeiYuanZhuXi(id);
            if (domen1 == String.Empty)
            {
                U_ZCSPBU sp1   = new U_ZCSPBU();
                String   czid  = ViewState["czid"].ToString();;
                string   info1 = sp1.PiYueZcForSH1(id, ht);
                sp1.Close();
                PubComm.ShowInfo(info1, Application["root"] + "/ZcMng3/EditSbb.aspx?id=" + czid + "&menuIndex=5");
            }
            else
            {
                Util.alert(this.Page, "错误:请等待其他成员【" + domen1 + "】的审批处理后,您才能处理!");
            }
        }
    }