Ejemplo n.º 1
0
 protected void Page_Load(object sender, EventArgs e)
 {
     if (!Page.IsPostBack)
     {
         if (Request.QueryString["kind"] != null && Request.QueryString["kind"] == "31")
         {
             U_ZCBU zc1 = new U_ZCBU();
             zc1.SetUserKind(Request.QueryString["id"], "31", "");
             zc1.Close();
             PubComm.ShowInfo("提示:清除用户自定义分类操作成功!", Application["root"] + "/ZcMng1/FixZcUserKind.aspx");
         }
         else if (Request.QueryString["kind"] != null && Request.QueryString["kind"] == "32")
         {
             U_ZCBU zc1 = new U_ZCBU();
             zc1.SetUserKind(Request.QueryString["id"], "32", "");
             zc1.Close();
             PubComm.ShowInfo("提示:清除用户自定义分类操作成功!", Application["root"] + "/ZcMng1/MyFixZcUserKind.aspx");
         }
         else
         {
             U_ItemBU item = new U_ItemBU();
             item.Setuserkind(this.userkind);
             item.Close();
             if (this.userkind.Items.Count > 0)
             {
                 this.userkind.SelectedIndex = 0;
             }
         }
     }
 }
Ejemplo n.º 2
0
    /// <summary>
    /// 办公室编号
    /// </summary>
    /// <param name="id"></param>
    private void SehenPiForBanGongShiZhuRen(String id, String dotime1)
    {
        if (this.xmsbh.Text == 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"]    = "同意";
            ht["xmsbh"] = this.xmsbh.Text;                  //项目申报号
            ht["czid"]  = ViewState["czid"].ToString();     //项目的ID

            U_ZCSPBU sp1   = new U_ZCSPBU();
            String   czid  = ViewState["czid"].ToString();
            string   info1 = sp1.PiYueZcForSHWeiYuan(id, ht);
            sp1.Close();
            PubComm.ShowInfo(info1, Application["root"] + "/ZcMng3/EditSbb.aspx?id=" + czid + "&menuIndex=5");
        }
    }
Ejemplo n.º 3
0
    //更新案卷信息
    protected void Button1_Click(object sender, EventArgs e)
    {
        Hashtable ht = new Hashtable();

        foreach (string item in arr0)
        {
            ht[item] = Util.GetControlValue(this.ajnum.Parent.FindControl(item));
        }

        bool check = true;

        /////////////////////////////////////////////////////////////////////////
        /////////////////////////////////////////////////////////////////////////
        if (check)
        {
            try
            {
                DA_AnJuanBU anjuan1 = new DA_AnJuanBU();
                anjuan1.UpdateAnJuanData(Request["id"], ht);
                anjuan1.Close();
                string url1 = Application["root"] + "/DangAn/AnJuanWeiHu.aspx";
                PubComm.ShowInfo("操作提示:更新资料成功!", Request.RawUrl);
            }
            catch
            {
                Util.alert(this.Page, "错误提示:更新案卷数据失败,可能的原因是数据类型有错误!");
            }
        }
    }
Ejemplo n.º 4
0
    //保存支出单据
    protected void SaveDataClick(object sender, EventArgs e)
    {
        this.SetDataSource();
        Hashtable ht = new Hashtable();

        string[] arr1 = new string[] { "bill", "billtime", "danwei", "zeren", "remark", "billmen" };
        for (int i = 0; i < arr1.Length; i++)
        {
            ht.Add(arr1[i], Util.GetControlValue(this.billmen.Parent.FindControl(arr1[i])));
        }
        ht.Add("zcid", Request.QueryString["zcid"]);

        DataSet ds = (DataSet)ViewState["DataSource"];

        try
        {
            CW_InStockBU stock1 = new CW_InStockBU();
            bool         result = stock1.InsertData(ht, ds);
            stock1.Close();
            if (result)
            {
                PubComm.ShowInfo("【增加入库单据】操作成功!", Application["root"] + "/Caiwu/ZcSearch.aspx");
            }
        }
        catch
        {
            PubComm.ShowInfo("【增加入库单据】操作失败,可能的原因是单据编号重复,请重新输入!", Request.RawUrl);
        }
    }
Ejemplo n.º 5
0
    /// <summary>
    /// 提交部门审批
    /// </summary>
    /// <param name="id"></param>
    private void SehenPiForBumen(String id, String dotime1)
    {
        if (this.piyue1.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.piyue1.SelectedValue;

            U_ZCSPBU sp1   = new U_ZCSPBU();
            String   czid  = "";
            string   info1 = sp1.PiYueZcForOffice(id, ht, out czid);
            sp1.Close();
            PubComm.ShowInfo(info1, Application["root"] + "/ZcMng3/EditSbb.aspx?id=" + czid + "&menuIndex=5");
        }
    }
Ejemplo n.º 6
0
    //设置资产责任人
    protected void Button1_Click(object sender, EventArgs e)
    {
        if (this.zeren.SelectedValue == "")
        {
            Util.alert(this.Page, "错误提示:请选择一个责任人!");
        }
        else
        {
            U_ZCBU zc1  = new U_ZCBU();
            String kind = "0";
            if (String.IsNullOrEmpty(Request.QueryString["renkind"]) == false)
            {
                kind = Request.QueryString["renkind"];
            }
            bool check1 = zc1.SetZeren(Request["id"], this.zeren.SelectedValue, kind);
            zc1.Close();
            string info = null;
            if (check1)
            {
                info = "提示:成功地将资产的责任人设置为【" + this.zeren.SelectedValue + "】!";
            }
            else
            {
                info = "提示:设置资产责任人操作失败!";
            }

            string url = Application["root"] + "/ZcMng1/ZiChangFengPei.aspx";
            if (Request["ReturnUrl"] != null && Request["ReturnUrl"] != "")
            {
                url = Request["ReturnUrl"];
            }
            PubComm.ShowInfo(info, url);
        }
    }
Ejemplo n.º 7
0
    protected void SaveDataClick(object sender, EventArgs e)
    {
        Hashtable ht = new Hashtable();

        string[] arr1 = new string[] { "bill", "billtime", "bname", "bzeren", "remark", "billmen",
                                       "fee1", "fee2", "fee3", "fee4", "fee5", "fee6", "fee7", "fee8",
                                       "fee9", "fee10", "fee11", "fee12" };
        for (int i = 0; i < arr1.Length; i++)
        {
            object obj1 = Util.GetControlValue(this.billmen.Parent.FindControl(arr1[i]));
            if (obj1 != null && obj1.ToString().Trim() != "")
            {
                ht.Add(arr1[i], obj1);
            }
        }
        ht.Add("bid", Request.QueryString["bid"]);
        try
        {
            CW_Pay1BU Pay1   = new CW_Pay1BU();
            bool      result = Pay1.InsertData(ht);
            Pay1.Close();
            if (result)
            {
                PubComm.ShowInfo("【增加支出单据】操作成功!", Application["root"] + "/Caiwu/ZcBaoSearch.aspx");
            }
        }
        catch
        {
            PubComm.ShowInfo("【增加支出单据】操作失败,可能的原因是单据编号重复,请重新输入!", Request.RawUrl);
        }
    }
Ejemplo n.º 8
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());
            }
        }
    }
Ejemplo n.º 9
0
    protected void Button1_Click(object sender, EventArgs e)
    {
        U_ZCBU zc1 = new U_ZCBU();

        zc1.SetBstatus(Request.QueryString["id"], this.Bstatus.SelectedValue);
        zc1.Close();
        string info = "提示:资产打包操作成功!";

        PubComm.ShowInfo(info, Application["root"] + "/ZcMng1/FixZcBao.aspx");
    }
Ejemplo n.º 10
0
    //确定文件的借阅
    protected void Button1_Click(object sender, EventArgs e)
    {
        string    Files = "";
        Hashtable ht    = new Hashtable();

        for (int i = 1; i < 6; i++)
        {
            string temp  = Util.GetControlValue(this.title1.Parent.FindControl("title" + i));
            string temp1 = Util.GetControlValue(this.title1.Parent.FindControl("ajnum" + i));
            if (temp.Trim() != "")
            {
                ht[temp.Trim()] = temp.Trim() + "_" + temp1.Trim();
            }
            if (temp != "" && temp1 == "")
            {
                if (Files == "")
                {
                    Files = i.ToString();
                }
                else
                {
                    Files = Files + "," + i;
                }
            }
        }

        if (ht.Count == 0)
        {
            Util.alert(this.Page, "错误提示:你至少需要输入一个文件名称");
        }
        else
        {
            if (Files != "")
            {
                Util.alert(this.Page, "错误提示:请检查文件" + Files + "是否输入档案编号!");
            }
            else
            {
                DA_JieYuanBU jyue1  = new DA_JieYuanBU();
                string       result = jyue1.AddJyueFileData(Request.QueryString["bill"], ht);
                string       id     = jyue1.GetIdBybill(Request.QueryString["bill"]);
                jyue1.Close();
                if (result == null)
                {
                    PubComm.ShowInfo("提示:增加文件成功!", Application["root"] + "/DangAn/EditJieyueInfo.aspx?id=" + id);
                }
                else
                {
                    Util.alert(this.Page, result);
                }
            }
        }
    }
Ejemplo n.º 11
0
    //审核出库单
    //暂时不考虑库存数量的输入错误等导致的错误(金寿吉)
    protected void SaveDataClick(object sender, EventArgs e)
    {
        Hashtable ht = new Hashtable();

        string[] arr1 = new string[] { "bill", "billtime", "danwei", "zeren", "remark", "billmen" };
        for (int i = 0; i < arr1.Length; i++)
        {
            ht.Add(arr1[i], Util.GetControlValue(this.billmen.Parent.FindControl(arr1[i])));
        }
        ht.Add("zcid", Request.QueryString["zcid"]);

        //增加出库单明细
        DataSet ds = new DataSet();

        ds.Tables.Add("Tables0");
        ds.Tables[0].Columns.Add("bill", System.Type.GetType("System.String"), "'" + this.bill.Text + "'");
        ds.Tables[0].Columns.Add("price", System.Type.GetType("System.Int32"), "'0'");

        string[] arr2 = new string[] { "gkind", "gname", "ggxh", "num", "remark", "dw", "stockid" };
        for (int i = 0; i < arr2.Length; i++)
        {
            ds.Tables[0].Columns.Add(arr2[i]);
        }


        for (int i = 0; i < this.Repeater1.Items.Count; i++)
        {
            DataRow dr = ds.Tables[0].NewRow();
            for (int j = 0; j < arr2.Length; j++)
            {
                dr[arr2[j]] = Util.GetControlValue(this.Repeater1.Items[i].FindControl(arr2[j]));
            }
            ds.Tables[0].Rows.Add(dr);
        }

        ///////////////////////////////////////////
        try
        {
            CW_OutStockBU stock1 = new CW_OutStockBU();
            bool          result = stock1.InsertData(ht, ds);
            stock1.Close();
            if (result)
            {
                PubComm.ShowInfo("【增加出库单据】操作成功!", Application["root"] + "/Caiwu/ZcSearch.aspx");
            }
        }
        catch
        {
            PubComm.ShowInfo("【增加出库单据】操作失败,可能的原因是单据编号重复,请重新输入!", Request.RawUrl);
        }
    }
Ejemplo n.º 12
0
    //送部门审批
    protected void butSendToDepartLeader_Click(object sender, EventArgs e)
    {
        U_ZCSPBU sp1  = new U_ZCSPBU();
        string   err1 = sp1.PiYueZcForDepart(this.zcczid.Text);

        sp1.Close();
        if (err1 != null)
        {
            Util.alert(this.Page, err1);
        }
        else
        {
            PubComm.ShowInfo("已成功转交部门审批!", Application["root"] + "/ZcMng2/ZcDetail3.aspx?id=" + Request["id"].ToString());
        }
    }
Ejemplo n.º 13
0
    //审核单据
    protected void SaveDataClick(object sender, EventArgs e)
    {
        CW_ShouKuanBU shoukuan1 = new CW_ShouKuanBU();
        bool          check1    = shoukuan1.CheckBill(Request.QueryString["id"], User.Identity.Name);

        shoukuan1.Close();
        if (check1)
        {
            PubComm.ShowInfo("提示:审核单据成功!", Application["root"] + "/Caiwu/CheckShouKuanList.aspx");
        }
        else
        {
            PubComm.ShowInfo("提示:审核单据失败,请重新审核!", Request.RawUrl);
        }
    }
Ejemplo n.º 14
0
    //提交资产审批处理
    protected void Button2_Click(object sender, EventArgs e)
    {
        U_ZCSPBU sp1  = new U_ZCSPBU();
        string   err1 = sp1.PiYueZcForDepart(Request["id"]);

        sp1.Close();
        if (err1 != null)
        {
            Util.alert(this.Page, err1);
        }
        else
        {
            PubComm.ShowInfo("已成功转交部门审批!", Application["root"] + "/ZcMng3/EditSbb.aspx?id=" + Request["id"].ToString() + "&menuIndex=5");
        }
    }
Ejemplo n.º 15
0
    //保存律师事务所资料
    protected void SaveDataClick(object sender, EventArgs e)
    {
        Hashtable ht = new Hashtable();

        ht["lssws"] = this.lssws.Text;
        ht["frdb"]  = this.frdb.Text;
        ht["wtls"]  = this.wtls.Text;
        ht["lxdh"]  = this.lxdh.Text;
        ht["dwdz"]  = this.dwdz.Text;
        ht["dzyj"]  = this.dzyj.Text;
        U_ZCBU zc1 = new U_ZCBU();

        zc1.UpDateZCDBInfo(Request["id"], ht);
        zc1.Close();
        PubComm.ShowInfo("【操作提示】:更新资料成功!", Request.RawUrl);
    }
Ejemplo n.º 16
0
 //增加新的资产方案审批表
 protected void butNewData_Click(object sender, EventArgs e)
 {
     try
     {
         Hashtable ht = new Hashtable();
         ht["zcid"]   = Request["id"].ToString();
         ht["status"] = "04";
         U_ZCBU zc3 = new U_ZCBU();
         zc3.InsertZcsbb(ht);
         zc3.Close();
         Response.Redirect(Request.RawUrl, true);
     }
     catch
     {
         PubComm.ShowInfo("【系统错误】:数据库事务操作错误!", Request.RawUrl);
     }
 }
Ejemplo n.º 17
0
    //添加案卷文件
    protected void Button1_Click(object sender, EventArgs e)
    {
        object[] obj0  = new object[] { title, filecount, filefs };
        object[] obj1  = new object[] { title };
        string[] info  = new string[] { "文件名称" };
        bool     check = true;

        for (int i = 0; i < info.Length; i++)
        {
            if (Util.GetControlValue((Control)obj1[i]) == null || Util.GetControlValue((Control)obj1[i]) == "")
            {
                check = false;
                Util.alert(this.Page, "错误提示:【" + info[i] + "】栏目不能为空!");
                break;
            }
        }

        if (check)
        {
            Hashtable ht = new Hashtable();
            Util.getPageData(obj0, ht);
            ht.Add("ajnum", this.ajnum.Text);
            if (ht["filecount"].ToString() == "")
            {
                ht.Remove("filecount");
            }
            if (ht["filefs"].ToString() == "")
            {
                ht.Remove("filefs");
            }
            DA_FilesBU file1  = new DA_FilesBU();
            bool       result = file1.InsertFileData(ht);

            file1.Close();
            if (result)
            {
                string url = Application["root"] + "/DangAn/AddFile.aspx?ajid=" + Request.QueryString["ajid"];
                PubComm.ShowInfo("提示:添加文件成功!", url);
            }
            else
            {
                Util.alert(this.Page, "错误提示:增加数据失败,请检查数据类型!");
            }
        }
    }
Ejemplo n.º 18
0
    //更新资产数据
    protected void SaveDataClick(object sender, EventArgs e)
    {
        //设置更新字段
        //String[] arr1 = new string[] {  "danwei","zhwd","num1","num2","huobei","huilv","bj",
        //                                "sshy","quyu","guangxia","zcbao","bank","htnum",
        //                                "zzjg","jysfzc","clsj","zczb","dqjj","qygm","dwdz","dwfzr",
        //                                "qyjjxz","yxzzzk","xdri","dkffrq1","jklsh","dkye","dkffrq2","htdqr",
        //                                "zjycszje","zydbfs","dbrwmc","yyldxt","xcyqrq","jrblsj","fenlei","remark"};

        String[] arr1 = new string[] { "danwei", "zhwd", "num1", "num2", "huobei", "huilv", "bj", "lx1", "lx2", "lx3",
                                       "sshy", "quyu", "guangxia", "zcbao", "bank", "htnum", "time0",
                                       "zzjg", "jysfzc", "clsj", "zczb", "dqjj", "qygm", "dwdz", "dwfzr",
                                       "qyjjxz", "yxzzzk", "xdri", "dkffrq1", "jklsh", "dkye", "dkffrq2", "htdqr",
                                       "zjycszje", "zydbfs", "dbrwmc", "yyldxt", "xcyqrq", "jrblsj", "fenlei", "remark" };

        Hashtable ht = new Hashtable();

        for (int i = 0; i < arr1.Length; i++)
        {
            if (this.zcbao.Parent.FindControl(arr1[i]) != null)
            {
                ht.Add(arr1[i], Util.GetControlValue(this.zcbao.Parent.FindControl(arr1[i])));
            }
        }

        try
        {
            U_ZCBU zc1 = new U_ZCBU();
            zc1.UpdateInfo(Request["id"], ht);
            zc1.Close();

            //向直接领导发送邮件操作
            string title  = String.Format("用户{0}已修改了档案号为{1}的资产档案", User.Identity.Name, this.num2.Text);
            string remark = title + "<br><br><b><font color='#ff0000'>此邮件要求提交审阅意见</font></b>";

            //PubComm.SendMailToLeader(title, remark,Request.RawUrl);

            PubComm.ShowInfo("操作提示:更新资料成功!", Request.RawUrl);
        }
        catch (Exception err)
        {
            Util.alert(this.Page, "错误提示:更新资产数据失败,可能的原因是数据类型有错误,请检查【转入时间】日期,【本金利息】等为数值型后重新输入!");
            //Response.Write(err.ToString());
        }
    }
Ejemplo n.º 19
0
    //调整用户自定义分类
    protected void Button1_Click(object sender, EventArgs e)
    {
        U_ZCBU zc1 = new U_ZCBU();

        zc1.SetUserKind(Request.QueryString["id"], Request.QueryString["kind"], this.userkind.SelectedValue);
        zc1.Close();
        string info = "提示:替换用户自定义分类操作成功!";

        if (Request.QueryString["kind"] == "21" || Request.QueryString["kind"] == "22")
        {
            info = "提示:追加用户自定义分类操作成功!";
        }
        if (Request.QueryString["kind"] == "21" || Request.QueryString["kind"] == "11")
        {
            PubComm.ShowInfo(info, Application["root"] + "/ZcMng1/FixZcUserKind.aspx");
        }
        else
        {
            PubComm.ShowInfo(info, Application["root"] + "/ZcMng1/MyFixZcUserKind.aspx");
        }
    }
Ejemplo n.º 20
0
    //增加资产数据
    protected void Button1_Click(object sender, EventArgs e)
    {
        object[] obj1 = new object[] { danwei, bj, lx1, lx2, lx3,
                                       time0, zhuang, remark, htnum, bank, zhwd, num1, sshy,
                                       quyu, fenlei, userkind, zcbao, huobi, huilv, guangxia, };

        string[] info = new string[] { "单位名称", "初始本金", "初始表内息", "初始表外息", "初始孳生利息", "转入时间" };

        bool check = true;

        for (int i = 0; i < info.Length; i++)
        {
            if (Util.GetControlValue((Control)obj1[i]) == null || Util.GetControlValue((Control)obj1[i]) == "")
            {
                check = false;
                Util.alert(this.Page, "错误提示:【" + info[i] + "】栏目不能为空!");
                break;
            }
        }

        // check true
        if (check)
        {
            try
            {
                Hashtable ht = new Hashtable();
                Util.getPageData(obj1, ht);

                U_ZCBU zc1 = new U_ZCBU();
                zc1.TabCommand.InsertData(ht);
                zc1.Close();
                string url = Request.RawUrl;
                PubComm.ShowInfo("增加资产数据成功!", url, true);
            }
            catch
            {
                Util.alert(this.Page, "错误提示:增加资产数据失败,可能的原因是数据类型有错误,请检查【转入时间】日期,【本金利息】等为数值型后重新输入!");
            }
        }
    }
Ejemplo n.º 21
0
    //提交--移交案卷
    protected void Button1_Click(object sender, EventArgs e)
    {
        string ajID = Request.QueryString["id"];

        this.ajstatus.Text = "2";
        object[]  obj1  = new object[] { yjtime, yjdanwei, jsren, ajstatus, remark1 };
        string [] info  = new string[] { "移交时间", "移交单位", "经手人" };
        bool      check = true;

        for (int i = 0; i < info.Length; i++)
        {
            if (Util.GetControlValue((Control)obj1[i]) == null || Util.GetControlValue((Control)obj1[i]) == "")
            {
                check = false;
                Util.alert(this.Page, "错误提示:【" + info[i] + "】栏目不能为空!");
                break;
            }
        }

        if (check)
        {
            Hashtable ht = new Hashtable();
            Util.getPageData(obj1, ht);
            ht["ajstatus"] = "2";

            DA_AnJuanBU anjuan2 = new DA_AnJuanBU();
            bool        result  = anjuan2.MoveAnJuan(ajID, ht);
            anjuan2.Close();
            if (result)
            {
                string url = Application["root"] + "/DangAn/AnJuanWeiHu.aspx";
                PubComm.ShowInfo("提示:移交案卷成功!", url, true);
            }
            else
            {
                Util.alert(this.Page, "错误提示:修改数据错误!");
            }
        }
    }
Ejemplo n.º 22
0
    //新增案卷
    protected void Button1_Click(object sender, EventArgs e)
    {
        if (Page.IsValid)
        {
            object[] obj1 = new object[] { ajnum, ajname, ajkind, time0, ljren };
            string[] info = new string[] { "案卷编号", "案卷名称", "案卷类型", "立卷时间", "立卷人" };

            bool check = true;
            for (int i = 0; i < info.Length; i++)
            {
                if (Util.GetControlValue((Control)obj1[i]) == null || Util.GetControlValue((Control)obj1[i]) == "")
                {
                    check = false;
                    Util.alert(this.Page, "错误提示:【" + info[i] + "】栏目不能为空!");
                    break;
                }
            }

            if (check)
            {
                try
                {
                    Hashtable ht = new Hashtable();
                    Util.getPageData(obj1, ht);

                    DA_AnJuanBU anjuan2 = new DA_AnJuanBU();
                    anjuan2.TabCommand.InsertData(ht);

                    anjuan2.Close();
                    string url = Request.RawUrl;
                    PubComm.ShowInfo("增加新案卷成功!", url, true);
                }
                catch
                {
                    Util.alert(this.Page, "错误提示:增加案卷数据失败,可能的原因是数据类型有错误,请检查后重新输入!");
                }
            }
        }
    }
Ejemplo n.º 23
0
    //更新文件资料
    protected void Button1_Click(object sender, EventArgs e)
    {
        Hashtable ht = new Hashtable();

        foreach (string item in arr1)
        {
            ht[item] = Util.GetControlValue(this.ajnum.Parent.FindControl(item));
        }
        ht.Remove("ajnum");
        DA_FilesBU file2 = new DA_FilesBU();

        file2.UpdateFileData(Request["fileID"], ht);
        file2.Close();

        DA_AnJuanBU anjuan1 = new DA_AnJuanBU();
        string      id      = anjuan1.GetIdByAjnum(this.ajnum.Text);

        anjuan1.Close();

        string url = Application["root"] + "/DangAn/AnJuanDetailEdit.aspx?id=" + id;

        PubComm.ShowInfo("操作提示:更新文件成功!", url);
    }
Ejemplo n.º 24
0
    protected void SaveDataClick(object sender, EventArgs e)
    {
        Hashtable ht = new Hashtable();

        ht["Bname"]   = this.Bname.Text;
        ht["Bjsf"]    = this.Bjsf.Text;
        ht["Bremark"] = this.Bremark.Text;
        ht["Bzeren"]  = this.Bzeren.Text;
        U_ZCBAOBU zcb1 = new U_ZCBAOBU();
        DataSet   ds1  = zcb1.GetZCBAOInfo(this.Bname.Text);

        if (ds1.Tables[0].Rows.Count <= 0)
        {
            ht.Add("Bren", this.User.Identity.Name);
            zcb1.InsertData(ht);
            string url = Request.RawUrl;
            PubComm.ShowInfo("增加资产包成功!", url, true);
        }
        else
        {
            Util.alert(this.Page, "该包名已经存在,请重新输入!");
        }
    }
Ejemplo n.º 25
0
    protected void SaveDataClick(object sender, EventArgs e)
    {
        Hashtable ht = new Hashtable();

        string[] arr1 = new string[] { "bill", "billtime", "danwei", "zeren", "pbj", "plx", "remark", "billmen" };
        for (int i = 0; i < arr1.Length; i++)
        {
            ht.Add(arr1[i], Util.GetControlValue(this.billmen.Parent.FindControl(arr1[i])));
        }
        ht.Add("zcid", Request.QueryString["zcid"]);
        try
        {
            CW_ShouKuanBU sk1 = new CW_ShouKuanBU();
            sk1.InsertData(ht);
            sk1.Close();

            PubComm.ShowInfo("【增加收款单据】操作成功!", Application["root"] + "/Caiwu/ZcSearch.aspx");
        }
        catch
        {
            PubComm.ShowInfo("【增加收款单据】操作失败,可能的原因是单据编号重复,请重新输入!", Request.RawUrl);
        }
    }
Ejemplo n.º 26
0
    /// <summary>
    /// 决策委员会成员审核
    /// </summary>
    /// <param name="id"></param>
    private void SehenPiForJueCeWeiYuanHui(String id, String dotime1)
    {
        if (this.piyue1.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.piyue1.SelectedValue;

            String domen1 = this.CheckShenHeWeiYuanZhuXi(id);
            if (domen1 == String.Empty)
            {
                U_ZCSPBU sp1   = new U_ZCSPBU();
                String   czid  = ViewState["czid"].ToString();;
                string   info1 = sp1.PiYueZcForSH2(id, ht);
                sp1.Close();
                PubComm.ShowInfo(info1, Application["root"] + "/ZcMng3/EditSbb.aspx?id=" + czid + "&menuIndex=5");
            }
            else
            {
                Util.alert(this.Page, "错误:请等待其他成员【" + domen1 + "】的审批处理后,您才能处理!");
            }
        }
    }
Ejemplo n.º 27
0
 //设置处理后的转向
 public static void ShowInfo(string info, string url)
 {
     PubComm.ShowInfo(info, url, true);
 }
Ejemplo n.º 28
0
    //删除邮件
    protected void Button1_Click(object sender, EventArgs e)
    {
        ZX_Email1BU emal1 = new ZX_Email1BU();
        string      id    = Request.QueryString["id"];
        DataSet     ds1   = emal1.GetSendMail(id);
        string      file1 = ds1.Tables[0].Rows[0]["file1"].ToString();

        if (file1 != "" && file1 != null)
        {
            ZX_EmailBu email1 = new ZX_EmailBu();
            bool       Cunzai = email1.IfCzFile(file1, "1");
            if (Cunzai == false)
            {
                File.Delete(Server.MapPath(Application["root"] + "/Common/MailFiles/" + file1));
            }
            email1.Dispose();
        }
        string file2 = ds1.Tables[0].Rows[0]["file2"].ToString();

        if (file2 != "" && file2 != null)
        {
            ZX_EmailBu email2  = new ZX_EmailBu();
            bool       Cunzai2 = email2.IfCzFile(file2, "2");
            if (Cunzai2 == false)
            {
                File.Delete(Server.MapPath(Application["root"] + "/Common/MailFiles/" + file2));
            }
            email2.Dispose();
        }
        string file3 = ds1.Tables[0].Rows[0]["file3"].ToString();

        if (file3 != "" && file3 != null)
        {
            ZX_EmailBu email3  = new ZX_EmailBu();
            bool       Cunzai3 = email3.IfCzFile(file3, "3");
            if (Cunzai3 == false)
            {
                File.Delete(Server.MapPath(Application["root"] + "/Common/MailFiles/" + file3));
            }
            email3.Dispose();
        }
        string file4 = ds1.Tables[0].Rows[0]["file4"].ToString();

        if (file4 != "" && file4 != null)
        {
            ZX_EmailBu email4  = new ZX_EmailBu();
            bool       Cunzai4 = email4.IfCzFile(file4, "4");
            if (Cunzai4 == false)
            {
                File.Delete(Server.MapPath(Application["root"] + "/Common/MailFiles/" + file4));
            }
            email4.Dispose();
        }
        string file5 = ds1.Tables[0].Rows[0]["file5"].ToString();

        if (file5 != "" && file5 != null)
        {
            ZX_EmailBu email5  = new ZX_EmailBu();
            bool       Cunzai5 = email5.IfCzFile(file5, "5");
            if (Cunzai5 == false)
            {
                File.Delete(Server.MapPath(Application["root"] + "/Common/MailFiles/" + file5));
            }
            email5.Dispose();
        }
        emal1.DelMail(id);
        emal1.Close();
        PubComm.ShowInfo("操作提示:删除留言数据成功!", Application["root"] + "/info/SendMail.aspx");
    }
Ejemplo n.º 29
0
 protected void Button1_Click(object sender, EventArgs e)
 {
     PubComm.ShowInfo("操作成功", Request.RawUrl);
 }
Ejemplo n.º 30
0
    protected void btn1_Click(object sender, EventArgs e)
    {
        if (Page.IsValid)
        {
            //如果是转发邮件,需要判断邮件的数量(2008年6月1日)
            //编码:金寿吉 时间:2008年6月1日
            /*----判断上传附件的数量---------*/
            int      MaxFile  = 0;
            int      begin    = 0;
            String[] TranFile = new String[5];
            if (Request.QueryString["inboxid"] != null)
            {
                foreach (RepeaterItem item in this.tranReapeater.Items)
                {
                    CheckBox chk1 = item.FindControl("chkfile") as CheckBox;
                    if (chk1.Checked)
                    {
                        Label lab2 = item.FindControl("labTransFile") as Label;
                        TranFile[begin] = lab2.Text;        //保存转发的附件
                        MaxFile++;
                        begin++;
                    }
                }

                //累计用户上传的附件
                if (MaxFile <= 5)
                {
                    for (int i = 1; i <= 5; i++)
                    {
                        FileUpload file = this.FileUpload1.Parent.FindControl("FileUpload" + i) as FileUpload;
                        if (file != null && file.PostedFile != null && file.PostedFile.FileName != String.Empty)
                        {
                            MaxFile++;
                        }
                    }
                }
            }


            //处理附件上传
            if (MaxFile <= 5)
            {
                Hashtable ht = new Hashtable();
                ht["to1"]    = this.to1.Text;
                ht["title"]  = this.title.Text.Trim();
                ht["remark"] = this.remark.Text;
                ht["time0"]  = DateTime.Now.ToString();
                ht["from1"]  = User.Identity.Name;

                //处理转发的附件
                int hbegin = 1;
                for (int i = 0; i < TranFile.Length; i++)
                {
                    if (TranFile[i] != null && TranFile[i] != String.Empty)
                    {
                        ht["file" + hbegin] = TranFile[i];
                        hbegin++;
                    }
                }


                //处理上传的附件
                if (this.FileUpload1.PostedFile != null)
                {
                    string ExcelName1 = FileUpload1.PostedFile.FileName;
                    string file1      = User.Identity.Name + "_" + Util.GetRandomString(9) + "_" + Path.GetFileName(ExcelName1);
                    if (Path.GetFileName(ExcelName1) != "")
                    {
                        ht["file" + hbegin] = file1;
                        FileUpload1.PostedFile.SaveAs(Server.MapPath(Application["root"] + "/Common/MailFiles/" + file1));
                        hbegin++;
                    }
                }
                if (this.FileUpload2.PostedFile != null)
                {
                    string ExcelName2 = FileUpload2.PostedFile.FileName;
                    string file2      = User.Identity.Name + "_" + Util.GetRandomString(9) + "_" + Path.GetFileName(ExcelName2);
                    if (Path.GetFileName(ExcelName2) != "")
                    {
                        ht["file" + hbegin] = file2;
                        FileUpload2.PostedFile.SaveAs(Server.MapPath(Application["root"] + "/Common/MailFiles/" + file2));
                        hbegin++;
                    }
                }
                if (this.FileUpload3.PostedFile != null)
                {
                    string ExcelName3 = FileUpload3.PostedFile.FileName;
                    string file3      = User.Identity.Name + "_" + Util.GetRandomString(9) + "_" + Path.GetFileName(ExcelName3);
                    if (Path.GetFileName(ExcelName3) != "")
                    {
                        ht["file" + hbegin] = file3;
                        FileUpload3.PostedFile.SaveAs(Server.MapPath(Application["root"] + "/Common/MailFiles/" + file3));
                        hbegin++;
                    }
                }
                if (this.FileUpload4.PostedFile != null)
                {
                    string ExcelName4 = FileUpload4.PostedFile.FileName;
                    string file4      = User.Identity.Name + "_" + Util.GetRandomString(9) + "_" + Path.GetFileName(ExcelName4);
                    if (Path.GetFileName(ExcelName4) != "")
                    {
                        ht["file" + hbegin] = file4;
                        FileUpload4.PostedFile.SaveAs(Server.MapPath(Application["root"] + "/Common/MailFiles/" + file4));
                        hbegin++;
                    }
                }
                if (this.FileUpload5.PostedFile != null)
                {
                    string ExcelName5 = FileUpload5.PostedFile.FileName;
                    string file5      = User.Identity.Name + "_" + Util.GetRandomString(9) + "_" + Path.GetFileName(ExcelName5);
                    if (Path.GetFileName(ExcelName5) != "")
                    {
                        ht["file" + hbegin] = file5;
                        FileUpload5.PostedFile.SaveAs(Server.MapPath(Application["root"] + "/Common/MailFiles/" + file5));
                        hbegin++;
                    }
                }

                //发送邮件操作
                ZX_EmailBu email2 = new ZX_EmailBu();
                bool       result = false;
                result = email2.AddMailTwo(ht);

                if (result)
                {
                    PubComm.ShowInfo("操作提示:邮件发送成功!", Application["root"] + "/Info/SendMail.aspx");
                }
                else
                {
                    Util.alert(this.Page, "错误提示:邮件发送失败!");
                }
            }
            else
            {
                Util.alert(this.Page, "错误提示:上传的附件数量不等超过5个!");
            }
        }
    }