protected void Page_Load(object sender, EventArgs e) { if (!Page.IsPostBack) { ZWL.Common.PublicMethod.CheckSession(); ZWL.BLL.ERPMianShi Model = new ZWL.BLL.ERPMianShi(); Model.GetModel(int.Parse(Request.QueryString["ID"].ToString())); this.lblMSName.Text=Model.MSName.ToString(); this.lblMSDate.Text=Model.MSDate.ToString(); this.lblMSSex.Text=Model.MSSex.ToString(); this.lblMSAge.Text=Model.MSAge.ToString(); this.lblXueLi.Text=Model.XueLi.ToString(); this.lblZhuanYe.Text=Model.ZhuanYe.ToString(); this.lblMSZhiWei.Text=Model.MSZhiWei.ToString(); this.lblMSJieGuo.Text=Model.MSJieGuo.ToString(); this.lblBackInfo.Text=Model.BackInfo.ToString(); this.lblFuJianStr.Text=ZWL.Common.PublicMethod.GetWenJian(Model.FuJianStr.ToString(),"../UpLoadFile/"); this.lblUserName.Text=Model.UserName.ToString(); this.lblTimeStr.Text=Model.TimeStr.ToString(); //дϵͳ��־ ZWL.BLL.ERPRiZhi MyRiZhi = new ZWL.BLL.ERPRiZhi(); MyRiZhi.UserName = ZWL.Common.PublicMethod.GetSessionValue("UserName"); MyRiZhi.DoSomething = "�û��鿴����������Ϣ(" + this.lblMSName.Text + ")"; MyRiZhi.IpStr = System.Web.HttpContext.Current.Request.UserHostAddress.ToString(); MyRiZhi.Add(); } }
protected void btn_Sub_Click(object sender, EventArgs e) { if(ZWL.Common.PublicMethod.IFExists("BuMenName", "ERPBuMen", 0, this.TextBox1.Text) == true) { ZWL.BLL.ERPBuMen MyBuMen = new ZWL.BLL.ERPBuMen(); MyBuMen.BuMenName = this.TextBox1.Text; MyBuMen.ChargeMan = this.UserName_Input.Value; MyBuMen.TelStr = this.TextBox3.Text; MyBuMen.ChuanZhen = this.TextBox4.Text; MyBuMen.BackInfo = this.TextBox5.Text; MyBuMen.DirID = int.Parse(Request.QueryString["DirID"].ToString()); MyBuMen.Add(); //写系统日志 ZWL.BLL.ERPRiZhi MyRiZhi = new ZWL.BLL.ERPRiZhi(); MyRiZhi.UserName = ZWL.Common.PublicMethod.GetSessionValue("UserName"); MyRiZhi.DoSomething = "用户添加部门信息(" + this.TextBox1.Text + ")"; MyRiZhi.IpStr = System.Web.HttpContext.Current.Request.UserHostAddress.ToString(); MyRiZhi.Add(); Response.Write("<script>alert('部门信息添加成功!');window.location.href='BuMenInfo.aspx?View=" + Request.QueryString["View"].ToString() + "&Type=" + Request.QueryString["Type"].ToString() + "&DirID=" + Request.QueryString["DirID"].ToString() + "'</script>"); //ZWL.Common.MessageBox.ShowAndRedirect(this, "部门信息添加成功!", "BuMenInfo.aspx?View=" + Request.QueryString["View"].ToString() + "&Type=" + Request.QueryString["Type"].ToString() + "&DirID=" + Request.QueryString["DirID"].ToString()); } else { Response.Write("<script>alert('该部门已经存在,请更换名称!!');</script>"); //ZWL.Common.MessageBox.Show(this, "该部门已经存在,请更换名称!"); } }
protected void ImageButton1_Click(object sender, ImageClickEventArgs e) { ZWL.BLL.ERPMianShi Model = new ZWL.BLL.ERPMianShi(); Model.MSName=this.txtMSName.Text.ToString(); Model.MSDate=this.txtMSDate.Text.ToString(); Model.MSSex=this.txtMSSex.Text.ToString(); Model.MSAge=this.txtMSAge.Text.ToString(); Model.XueLi=this.txtXueLi.Text.ToString(); Model.ZhuanYe=this.txtZhuanYe.Text.ToString(); Model.MSZhiWei=this.txtMSZhiWei.Text.ToString(); Model.MSJieGuo=this.txtMSJieGuo.Text.ToString(); Model.BackInfo=this.txtBackInfo.Text.ToString(); Model.FuJianStr=ZWL.Common.PublicMethod.GetSessionValue("WenJianList"); Model.UserName=ZWL.Common.PublicMethod.GetSessionValue("UserName"); Model.TimeStr=DateTime.Now; Model.Add(); //дϵͳ��־ ZWL.BLL.ERPRiZhi MyRiZhi = new ZWL.BLL.ERPRiZhi(); MyRiZhi.UserName = ZWL.Common.PublicMethod.GetSessionValue("UserName"); MyRiZhi.DoSomething = "�û��������������Ϣ(" + this.txtMSName.Text + ")"; MyRiZhi.IpStr = System.Web.HttpContext.Current.Request.UserHostAddress.ToString(); MyRiZhi.Add(); ZWL.Common.MessageBox.ShowAndRedirect(this, "����������Ϣ��ӳɹ���", "MianShi.aspx"); }
protected void ImageButton1_Click(object sender, ImageClickEventArgs e) { ZWL.BLL.ERPGuDing Model = new ZWL.BLL.ERPGuDing(); Model.GDName=this.txtGDName.Text.ToString(); Model.GDSerils=this.txtGDSerils.Text.ToString(); Model.GDType=this.txtGDType.Text.ToString(); Model.SuoShuBuMen=this.txtSuoShuBuMen.Text.ToString(); Model.GDAllCount=this.txtGDAllCount.Text.ToString(); Model.NowCount=this.txtNowCount.Text.ToString(); Model.NianXian=this.txtNianXian.Text.ToString(); Model.GDXingZhi=this.txtGDXingZhi.Text.ToString(); Model.QiYongDate=this.txtQiYongDate.Text.ToString(); Model.BaoGuanUser=this.txtBaoGuanUser.Text.ToString(); Model.UserName=ZWL.Common.PublicMethod.GetSessionValue("UserName"); Model.TimeStr=DateTime.Now; Model.BackInfo=this.txtBackInfo.Text.ToString(); Model.Add(); //дϵͳ��־ ZWL.BLL.ERPRiZhi MyRiZhi = new ZWL.BLL.ERPRiZhi(); MyRiZhi.UserName = ZWL.Common.PublicMethod.GetSessionValue("UserName"); MyRiZhi.DoSomething = "�û�����ʲ���Ϣ(" + this.txtGDName.Text + ")"; MyRiZhi.IpStr = System.Web.HttpContext.Current.Request.UserHostAddress.ToString(); MyRiZhi.Add(); ZWL.Common.MessageBox.ShowAndRedirect(this, "�ʲ���Ϣ��ӳɹ���", "GuDing.aspx"); }
protected void btn_Sub_Click(object sender, EventArgs e) { ZWL.BLL.ERPHuiBao Model = new ZWL.BLL.ERPHuiBao(); Model.TitleStr = this.TextBox1.Text; Model.ContentStr = this.TxtContent.Text; Model.CanLookUser = this.UserName_Input.Value; Model.DDWL = this.TextBox3.Text; Model.TimeStr = DateTime.Now; Model.DDWL = this.ddl_WarningType.SelectedValue; Model.FuJianStr = ZWL.Common.PublicMethod.GetSessionValue("WenJianList"); Model.UserName = ZWL.Common.PublicMethod.GetSessionValue("UserName"); Model.SSBM = ZWL.Common.PublicMethod.GetSessionValue("Department"); if(string.IsNullOrEmpty(this.TextBox2.Text)) { Model.ZT = "信息保存"; } else { Model.ZT = "信息转发"; } Model.Add(); //写系统日志 ZWL.BLL.ERPRiZhi MyRiZhi = new ZWL.BLL.ERPRiZhi(); MyRiZhi.UserName = ZWL.Common.PublicMethod.GetSessionValue("UserName"); MyRiZhi.DoSomething = "用户添加工作报告信息(" + this.TextBox1.Text + ")"; MyRiZhi.IpStr = System.Web.HttpContext.Current.Request.UserHostAddress.ToString(); MyRiZhi.Add(); Response.Write("<script>alert('工作报告添加成功!');window.location.href='"+ReturnInput.Value+"'</script>"); }
protected void btn_Sub_Click(object sender, EventArgs e) { DataEntityDataContext context = new DataEntityDataContext(); FenceXX Model = new FenceXX(); Model.MC = this.txt_MC.Text; Model.WHRID = ZWL.Common.PublicMethod.GetSessionValue("UserName"); Model.Coords = this.txt_Coords.Text; Model.FenceUser = this.UserName_Input.Value; Model.BZ2 = this.txt_BZ2.Text; Model.LX = this.ddl_LX.SelectedValue; Model.DZ = this.txt_DZ.Text; Model.BZ1 = this.ZT.SelectedValue; Model.WHSJ = DateTime.Now; Model.WHR = ZWL.Common.PublicMethod.GetSessionValue("TrueName"); context.FenceXX.InsertOnSubmit(Model); context.SubmitChanges(); //写系统日志 ZWL.BLL.ERPRiZhi MyRiZhi = new ZWL.BLL.ERPRiZhi(); MyRiZhi.UserName = ZWL.Common.PublicMethod.GetSessionValue("UserName"); MyRiZhi.DoSomething = "用户添加电子围栏(" + this.txt_MC.Text + ")"; MyRiZhi.IpStr = System.Web.HttpContext.Current.Request.UserHostAddress.ToString(); MyRiZhi.Add(); Response.Write("<script>alert('电子围栏添加成功!');window.location.href='Fence.aspx'</script>"); //ZWL.Common.MessageBox.ShowAndRedirect(this, "电子围栏添加成功!", "Fence.aspx"); }
protected void ImageButton1_Click(object sender, ImageClickEventArgs e) { string[] MYJianDa = this.Label2.Text.Split(','); for (int i = 0; i < MYJianDa.Length; i++) { string DeFenShu = ""; try { DeFenShu = Request.Form["text-" + MYJianDa[i].ToString()].ToString().Trim(); } catch { } if (DeFenShu == "") { DeFenShu = null; } ZWL.DBUtility.DbHelperSQL.ExecuteSQL("update ERPTiKuKaoShiJieGuo set DeFen=" + DeFenShu + " where KaoShiID="+Request.QueryString["ID"].ToString()+" and TiMuID="+MYJianDa[i].ToString()); } ZWL.Common.MessageBox.ShowAndRedirect(this, "在线考试人工阅卷保存成功!", "TiKuKaoShiOK.aspx"); //写系统日志 ZWL.BLL.ERPRiZhi MyRiZhi = new ZWL.BLL.ERPRiZhi(); MyRiZhi.UserName = ZWL.Common.PublicMethod.GetSessionValue("UserName"); MyRiZhi.DoSomething = "用户在线人工阅卷(" + this.lblUserName.Text + ")"; MyRiZhi.IpStr = System.Web.HttpContext.Current.Request.UserHostAddress.ToString(); MyRiZhi.Add(); }
protected void Page_Load(object sender, EventArgs e) { if (!Page.IsPostBack) { ZWL.Common.PublicMethod.CheckSession(); ZWL.BLL.ERPRenShiHeTong Model = new ZWL.BLL.ERPRenShiHeTong(); Model.GetModel(int.Parse(Request.QueryString["ID"].ToString())); this.lblHeTongUser.Text=Model.HeTongUser.ToString(); this.lblNowState.Text=Model.NowState.ToString(); this.lblSerils.Text=Model.Serils.ToString(); this.lblTypeStr.Text=Model.TypeStr.ToString(); this.lblJingYe.Text=Model.JingYe.ToString(); this.lblBaoMiXieYi.Text=Model.BaoMiXieYi.ToString(); this.lblQianYueDate.Text=Model.QianYueDate.ToString(); this.lblManYueDate.Text=Model.ManYueDate.ToString(); this.lblJianZhengJiGuan.Text=Model.JianZhengJiGuan.ToString(); this.lblJianZhengDate.Text=Model.JianZhengDate.ToString(); this.lblWeiYueZeRen.Text=Model.WeiYueZeRen.ToString(); this.lblBackInfo.Text=Model.BackInfo.ToString(); this.lblFuJianList.Text=ZWL.Common.PublicMethod.GetWenJian(Model.FuJianList.ToString(),"../UploadFile/"); this.lblUserName.Text=Model.UserName.ToString(); this.lblTimeStr.Text=Model.TimeStr.ToString(); //дϵͳ��־ ZWL.BLL.ERPRiZhi MyRiZhi = new ZWL.BLL.ERPRiZhi(); MyRiZhi.UserName = ZWL.Common.PublicMethod.GetSessionValue("UserName"); MyRiZhi.DoSomething = "�û��鿴���º�ͬ��Ϣ(" + this.lblHeTongUser.Text + ")"; MyRiZhi.IpStr = System.Web.HttpContext.Current.Request.UserHostAddress.ToString(); MyRiZhi.Add(); } }
protected void btn_Draft_Click(object sender, EventArgs e) { //草稿 ZWL.BLL.ERPLanEmail MyModel = new ZWL.BLL.ERPLanEmail(); MyModel.EmailTitle = this.TextBox1.Text; MyModel.EmailContent = this.TxtContent.Text; MyModel.FuJian = ZWL.Common.PublicMethod.GetSessionValue("WenJianList"); MyModel.FromUser = ZWL.Common.PublicMethod.GetSessionValue("UserName"); MyModel.EmailState = "草稿"; string[] ToWhoList = this.UserName_Input.Value.Trim().Split(','); for(int i = 0; i < ToWhoList.Length; i++) { if(ToWhoList[i].Trim().Length > 0) { MyModel.ToUser = ToWhoList[i].Trim(); MyModel.Add(); } } //写系统日志 ZWL.BLL.ERPRiZhi MyRiZhi = new ZWL.BLL.ERPRiZhi(); MyRiZhi.UserName = ZWL.Common.PublicMethod.GetSessionValue("UserName"); MyRiZhi.DoSomething = "用户添加新记录(" + this.TextBox1.Text + ")"; MyRiZhi.IpStr = System.Web.HttpContext.Current.Request.UserHostAddress.ToString(); MyRiZhi.Add(); Response.Write("<script>alert('新增记录成功!');window.location.href='" + ReturnInput.Value + "'</script>"); }
protected void ImageButton1_Click(object sender, ImageClickEventArgs e) { ZWL.BLL.ERPFileList MyModel = new ZWL.BLL.ERPFileList(); MyModel.ID = int.Parse(Request.QueryString["ID"].ToString()); MyModel.FileName = this.TextBox1.Text; MyModel.BianHao = this.TextBox2.Text; MyModel.BackInfo = ""; MyModel.DaXiao = 0; MyModel.FileType = "dir"; MyModel.DirID = int.Parse(Request.QueryString["DirID"].ToString()); MyModel.ShangChuanTime = DateTime.Now; MyModel.FilePath = ""; MyModel.UserName = ZWL.Common.PublicMethod.GetSessionValue("UserName"); MyModel.IFDel = "否"; MyModel.TypeName = Request.QueryString["Type"].ToString(); MyModel.IfShare = this.RadioButtonList1.SelectedItem.Text; MyModel.DirOrFile = 1; MyModel.CanView = txtCanView.Text; MyModel.CanAdd = txtCanAdd.Text; MyModel.CanMod = txtCanMod.Text; MyModel.CanDel = txtCanDel.Text; MyModel.Update(); //写系统日志 ZWL.BLL.ERPRiZhi MyRiZhi = new ZWL.BLL.ERPRiZhi(); MyRiZhi.UserName = ZWL.Common.PublicMethod.GetSessionValue("UserName"); MyRiZhi.DoSomething = "用户修改文件夹信息(" + this.TextBox1.Text + ")"; MyRiZhi.IpStr = System.Web.HttpContext.Current.Request.UserHostAddress.ToString(); MyRiZhi.Add(); ZWL.Common.MessageBox.ShowAndRedirect(this, "文件夹修改成功!", "DocCenter.aspx?Type=" + Request.QueryString["Type"].ToString() + "&DirID=" + Request.QueryString["DirID"].ToString()); }
protected void btn_Sub_Click(object sender, EventArgs e) { DataEntityDataContext context = new DataEntityDataContext(); POIXX Model = new POIXX(); Model.MC = this.TextBox1.Text; Model.WHRID = ZWL.Common.PublicMethod.GetSessionValue("UserName"); Model.X = this.TextBox3.Text; Model.Y = this.TextBox4.Text; Model.BZ2 = this.TextBox5.Text; Model.LX = this.DropDownList1.SelectedValue; Model.DZ = this.TxtContent.Text; Model.BZ1 = this.ZT.SelectedValue; Model.WHSJ = DateTime.Now; Model.WHR = ZWL.Common.PublicMethod.GetSessionValue("TrueName"); context.POIXX.InsertOnSubmit(Model); context.SubmitChanges(); //写系统日志 ZWL.BLL.ERPRiZhi MyRiZhi = new ZWL.BLL.ERPRiZhi(); MyRiZhi.UserName = ZWL.Common.PublicMethod.GetSessionValue("UserName"); MyRiZhi.DoSomething = "用户添加POI信息(" + this.TextBox1.Text + ")"; MyRiZhi.IpStr = System.Web.HttpContext.Current.Request.UserHostAddress.ToString(); MyRiZhi.Add(); Response.Write("<script>alert('POI信息添加成功!');window.location.href='POI.aspx'</script>"); }
protected void ImageButton1_Click(object sender, ImageClickEventArgs e) { ZWL.BLL.ERPReport Model = new ZWL.BLL.ERPReport(); Model.ReportName=this.txtReportName.Text.ToString(); Model.ReportSql=this.txtReportSql.Text.ToString(); Model.BackInfo=this.txtBackInfo.Text.ToString(); Model.TypeID=int.Parse(Request.QueryString["TypeID"].ToString()); Model.UserListOK=this.txtUserListOK.Text.ToString(); Model.DepListOK=this.txtDepListOK.Text.ToString(); Model.JiaoSeListOK=this.txtJiaoSeListOK.Text.ToString(); Model.PaiXuStr=this.txtPaiXuStr.Text.ToString(); Model.UserName=ZWL.Common.PublicMethod.GetSessionValue("UserName"); Model.TimeStr=DateTime.Now; Model.Add(); //дϵͳ��־ ZWL.BLL.ERPRiZhi MyRiZhi = new ZWL.BLL.ERPRiZhi(); MyRiZhi.UserName = ZWL.Common.PublicMethod.GetSessionValue("UserName"); MyRiZhi.DoSomething = "�û���ӱ��������Ϣ(" + this.txtReportName.Text + ")"; MyRiZhi.IpStr = System.Web.HttpContext.Current.Request.UserHostAddress.ToString(); MyRiZhi.Add(); ZWL.Common.MessageBox.ShowAndRedirect(this, "���������Ϣ��ӳɹ���", "Report.aspx?TypeID=" + Request.QueryString["TypeID"].ToString()); }
protected void ImageButton1_Click(object sender, ImageClickEventArgs e) { ZWL.BLL.ERPVote Model = new ZWL.BLL.ERPVote(); Model.TitleStr = this.TextBox1.Text; Model.ContentStr = this.TextBox2.Text; Model.ScoreStr = ""; for (int i = 0; i < Model.ContentStr.Split('|').Length; i++) { if (Model.ScoreStr.Trim().Length > 0) { Model.ScoreStr = Model.ScoreStr + "|0"; } else { Model.ScoreStr = "0"; } } Model.ID = int.Parse(Request.QueryString["ID"].ToString()); Model.Update(); //写系统日志 ZWL.BLL.ERPRiZhi MyRiZhi = new ZWL.BLL.ERPRiZhi(); MyRiZhi.UserName = ZWL.Common.PublicMethod.GetSessionValue("UserName"); MyRiZhi.DoSomething = "用户修改投票信息(" + this.TextBox1.Text + ")"; MyRiZhi.IpStr = System.Web.HttpContext.Current.Request.UserHostAddress.ToString(); MyRiZhi.Add(); ZWL.Common.MessageBox.ShowAndRedirect(this, "投票信息修改成功!", "Vote.aspx"); }
protected void Page_Load(object sender, EventArgs e) { if (!Page.IsPostBack) { ZWL.Common.PublicMethod.CheckSession(); ZWL.BLL.ERPReport Model = new ZWL.BLL.ERPReport(); Model.GetModel(int.Parse(Request.QueryString["ID"].ToString())); this.lblReportName.Text=Model.ReportName.ToString(); this.lblReportSql.Text=Model.ReportSql.ToString(); this.lblBackInfo.Text=Model.BackInfo.ToString(); this.lblTypeID.Text=Model.TypeID.ToString(); this.lblUserListOK.Text=Model.UserListOK.ToString(); this.lblDepListOK.Text=Model.DepListOK.ToString(); this.lblJiaoSeListOK.Text=Model.JiaoSeListOK.ToString(); this.lblPaiXuStr.Text=Model.PaiXuStr.ToString(); this.lblUserName.Text=Model.UserName.ToString(); this.lblTimeStr.Text=Model.TimeStr.ToString(); //дϵͳ��־ ZWL.BLL.ERPRiZhi MyRiZhi = new ZWL.BLL.ERPRiZhi(); MyRiZhi.UserName = ZWL.Common.PublicMethod.GetSessionValue("UserName"); MyRiZhi.DoSomething = "�û��鿴���������Ϣ(" + this.lblReportName.Text + ")"; MyRiZhi.IpStr = System.Web.HttpContext.Current.Request.UserHostAddress.ToString(); MyRiZhi.Add(); } }
protected void Page_Load(object sender, EventArgs e) { if (!Page.IsPostBack) { ZWL.Common.PublicMethod.CheckSession(); ZWL.BLL.ERPLanEmail MyLanEmail = new ZWL.BLL.ERPLanEmail(); MyLanEmail.GetModel(int.Parse(Request.QueryString["ID"].ToString().Trim())); this.Label1.Text = MyLanEmail.EmailTitle; this.Label2.Text = MyLanEmail.FromUser; this.Label3.Text = MyLanEmail.ToUser; this.Label4.Text = MyLanEmail.TimeStr.ToString(); this.Label5.Text =ZWL.Common.PublicMethod.GetWenJian(MyLanEmail.FuJian,"../UploadFile/"); this.Label6.Text = MyLanEmail.EmailContent; //写系统日志 ZWL.BLL.ERPRiZhi MyRiZhi = new ZWL.BLL.ERPRiZhi(); MyRiZhi.UserName = ZWL.Common.PublicMethod.GetSessionValue("UserName"); MyRiZhi.DoSomething = "用户查看邮件(" + this.Label1.Text + ")"; MyRiZhi.IpStr = System.Web.HttpContext.Current.Request.UserHostAddress.ToString(); MyRiZhi.Add(); //设置为已读 if (MyLanEmail.ToUser.Trim() == ZWL.Common.PublicMethod.GetSessionValue("UserName").Trim()) { if (MyLanEmail.EmailState == "未读") { ZWL.DBUtility.DbHelperSQL.ExecuteSQL("update ERPLanEmail set EmailState='已读' where ID=" + Request.QueryString["ID"].ToString().Trim()); } } } }
protected void btn_Sub_Out_Click(object sender, EventArgs e) { ZWL.BLL.ERPMobile MyModel = new ZWL.BLL.ERPMobile(); MyModel.ToUserList = this.TextBox3.Text; MyModel.ContentStr = this.TextBox4.Text; MyModel.FaSongUser = ZWL.Common.PublicMethod.GetSessionValue("UserName"); //Mobile.SendSMS2(MyModel.FaSongUser, MyModel.ToUserList, MyModel.ContentStr); string WrongUser = Mobile.send(TextBox3.Text.Trim(), MyModel.ContentStr); //发送人和发送内容 MyModel.ToUserList = "外部人员:" + this.TextBox3.Text; MyModel.Add(); if(WrongUser.Trim() == "发送成功") { ZWL.Common.MessageBox.ShowAndRedirect(this, "手机短信发送成功!", "MobileSms.aspx"); } else if(WrongUser.Trim() == "号码过多") { ZWL.Common.MessageBox.ShowAndRedirect(this, "手机短信发送失败!失败原因:号码过多。", "MobileSms.aspx"); } else if(WrongUser.Trim() == "号码不正确") { ZWL.Common.MessageBox.ShowAndRedirect(this, "手机短信发送失败!失败原因:号码不正确。", "MobileSms.aspx"); } else { ZWL.Common.MessageBox.ShowAndRedirect(this, "手机短信发送失败!失败原因:" + WrongUser + "。", "MobileSms.aspx"); } //写系统日志 ZWL.BLL.ERPRiZhi MyRiZhi = new ZWL.BLL.ERPRiZhi(); MyRiZhi.UserName = ZWL.Common.PublicMethod.GetSessionValue("UserName"); MyRiZhi.DoSomething = "用户添加新外部手机短信(" + this.TextBox4.Text + ")"; MyRiZhi.IpStr = System.Web.HttpContext.Current.Request.UserHostAddress.ToString(); MyRiZhi.Add(); Response.Write("<script>alert('手机短信发送成功!');window.location.href='MobileSms.aspx'</script>"); //ZWL.Common.MessageBox.ShowAndRedirect(this, "手机短信发送成功!", "MobileSms.aspx"); }
protected void Page_Load(object sender, EventArgs e) { if (!Page.IsPostBack) { ZWL.Common.PublicMethod.CheckSession(); ZWL.BLL.ERPJiangCheng Model = new ZWL.BLL.ERPJiangCheng(); Model.GetModel(int.Parse(Request.QueryString["ID"].ToString())); this.lblJCUser.Text=Model.JCUser.ToString(); this.lblJiangChengQuFen.Text=Model.JiangChengQuFen.ToString(); this.lblJiangChengType.Text=Model.JiangChengType.ToString(); this.lblShouYuDanWei.Text=Model.ShouYuDanWei.ToString(); this.lblJiangChengDate.Text=Model.JiangChengDate.ToString(); this.lblJiangChengMingMu.Text=Model.JiangChengMingMu.ToString(); this.lblJiangChengYuanYin.Text=Model.JiangChengYuanYin.ToString(); this.lblBackInfo.Text=Model.BackInfo.ToString(); this.lblUserName.Text=Model.UserName.ToString(); this.lblTimeStr.Text=Model.TimeStr.ToString(); //дϵͳ��־ ZWL.BLL.ERPRiZhi MyRiZhi = new ZWL.BLL.ERPRiZhi(); MyRiZhi.UserName = ZWL.Common.PublicMethod.GetSessionValue("UserName"); MyRiZhi.DoSomething = "�û��鿴���ͼ�¼��Ϣ(" + this.lblJCUser.Text + ")"; MyRiZhi.IpStr = System.Web.HttpContext.Current.Request.UserHostAddress.ToString(); MyRiZhi.Add(); } }
protected void ImageButton1_Click(object sender, EventArgs e) { ZWL.BLL.ERPLanEmail MyModel = new ZWL.BLL.ERPLanEmail(); ZWL.BLL.ERPLanEmailShou MyModelShou = new ZWL.BLL.ERPLanEmailShou(); MyModel .EmailTitle = this.TextBox1.Text; MyModel.EmailContent = this.TxtContent.Value; MyModel.FuJian = ZWL.Common.PublicMethod.GetSessionValue("WenJianList"); MyModel.FromUser = ZWL.Common.PublicMethod.GetSessionValue("UserName"); MyModel.EmailState = "未读"; MyModel.TimeStr = DateTime.Now; MyModelShou.TimeStr = MyModel.TimeStr; string[] ToWhoList = this.TextBox2.Text.Trim().Split(','); for (int i = 0; i < ToWhoList.Length; i++) { if (ToWhoList[i].Trim().Length > 0) { MyModel.ToUser = ToWhoList[i].Trim(); MyModel.Add(); } } //写系统日志 ZWL.BLL.ERPRiZhi MyRiZhi = new ZWL.BLL.ERPRiZhi(); MyRiZhi.UserName = ZWL.Common.PublicMethod.GetSessionValue("UserName"); MyRiZhi.DoSomething = "用户添加新邮件(" + this.TextBox1.Text + ")"; MyRiZhi.IpStr = System.Web.HttpContext.Current.Request.UserHostAddress.ToString(); MyRiZhi.Add(); ZWL.Common.MessageBox.ShowAndRedirect(this, "内部邮件发送成功!", "LanEmailShou.aspx"); }
protected void Page_Load(object sender, EventArgs e) { if (!Page.IsPostBack) { ZWL.Common.PublicMethod.CheckSession(); ZWL.BLL.ERPTaskFP Model = new ZWL.BLL.ERPTaskFP(); Model.GetModel(int.Parse(Request.QueryString["ID"].ToString())); this.lblTaskTitle.Text=Model.TaskTitle.ToString(); this.lblTaskContent.Text=Model.TaskContent.ToString(); this.lblFromUser.Text=Model.FromUser.ToString(); this.lblToUserList.Text=Model.ToUserList.ToString(); this.lblXinXiGouTong.Text=Model.XinXiGouTong.ToString(); this.lblJinDu.Text=Model.JinDu.ToString()+"%"; this.lblWanCheng.Text=Model.WanCheng.ToString(); this.lblNowState.Text=Model.NowState.ToString(); this.Label1.Text = Model.KSSJ.ToString(); this.Label2.Text = Model.JSSJ.ToString(); this.Label3.Text = Model.SFFK.ToString(); this.Label4.Text = Model.FKSJ.ToString(); //дϵͳ��־ ZWL.BLL.ERPRiZhi MyRiZhi = new ZWL.BLL.ERPRiZhi(); MyRiZhi.UserName = ZWL.Common.PublicMethod.GetSessionValue("UserName"); MyRiZhi.DoSomething = "�û��鿴���������Ϣ(" + this.lblTaskTitle.Text + ")"; MyRiZhi.IpStr = System.Web.HttpContext.Current.Request.UserHostAddress.ToString(); MyRiZhi.Add(); } }
protected void btn_Sub_In_Click(object sender, EventArgs e) { ZWL.BLL.ERPMobile MyModel = new ZWL.BLL.ERPMobile(); MyModel.ToUserList = this.TextBox1.Text.Trim(); MyModel.ContentStr = this.TextBox2.Text.Trim(); MyModel.FaSongUser = ZWL.Common.PublicMethod.GetSessionValue("UserName"); //Mobile.SendSMS(MyModel.FaSongUser, MyModel.ToUserList, MyModel.ContentStr); string WrongUser = Mobile.UserToTel(MyModel.ToUserList, MyModel.ContentStr); //发送人名,发送内容 MyModel.ToUserList = "内部人员:" + this.TextBox1.Text; MyModel.Add(); if(WrongUser.Trim() == "0") { } else if(WrongUser.Trim() == "1") { Response.Write("<script>alert('手机短信发送成功!');window.location.href='MobileSms.aspx'</script>"); //ZWL.Common.MessageBox.ShowAndRedirect(this, "手机短信发送成功!", "MobileSms.aspx"); } else { Response.Write("<script>alert('手机短信发送成功,其中" + WrongUser.Trim() + "手机号码有误!');window.location.href='MobileSms.aspx'</script>"); //ZWL.Common.MessageBox.ShowAndRedirect(this, "手机短信发送成功,其中" + WrongUser.Trim() + "手机号码有误!", "MobileSms.aspx"); } //写系统日志 ZWL.BLL.ERPRiZhi MyRiZhi = new ZWL.BLL.ERPRiZhi(); MyRiZhi.UserName = ZWL.Common.PublicMethod.GetSessionValue("UserName"); MyRiZhi.DoSomething = "用户添加新内部手机短信(" + this.TextBox2.Text + ")"; MyRiZhi.IpStr = System.Web.HttpContext.Current.Request.UserHostAddress.ToString(); MyRiZhi.Add(); Response.Write("<script>alert('手机短信发送成功!');window.location.href='MobileSms.aspx'</script>"); //ZWL.Common.MessageBox.ShowAndRedirect(this, "手机短信发送成功!", "MobileSms.aspx"); }
protected void Page_Load(object sender, EventArgs e) { if (!Page.IsPostBack) { ZWL.Common.PublicMethod.CheckSession(); ZWL.BLL.ERPTreeList Model = new ZWL.BLL.ERPTreeList(); Model.GetModel(int.Parse(Request.QueryString["ID"].ToString())); this.lblTextStr.Text=Model.TextStr.ToString(); this.lblImageUrlStr.Text=Model.ImageUrlStr.ToString(); this.lblValueStr.Text=Model.ValueStr.ToString(); this.lblNavigateUrlStr.Text=Model.NavigateUrlStr.ToString(); this.lblTarget.Text=Model.Target.ToString(); this.lblParentID.Text=Model.ParentID.ToString(); this.lblQuanXianList.Text=Model.QuanXianList.ToString(); this.lblPaiXuStr.Text=Model.PaiXuStr.ToString(); this.lblClass.Text = Model.ParentClass; //дϵͳ��־ ZWL.BLL.ERPRiZhi MyRiZhi = new ZWL.BLL.ERPRiZhi(); MyRiZhi.UserName = ZWL.Common.PublicMethod.GetSessionValue("UserName"); MyRiZhi.DoSomething = "�û��鿴�˵�������Ϣ(" + this.lblTextStr.Text + ")"; MyRiZhi.IpStr = System.Web.HttpContext.Current.Request.UserHostAddress.ToString(); MyRiZhi.Add(); ReturnInput.Value = Request.UrlReferrer.ToString() == null ? "../SystemManage/TreeList.aspx" : Request.UrlReferrer.ToString(); } }
protected void Page_Load(object sender, EventArgs e) { if (!Page.IsPostBack) { ZWL.Common.PublicMethod.CheckSession(); //绑定页面数据 ZWL.BLL.ERPMeeting Model = new ZWL.BLL.ERPMeeting(); Model.GetModel(int.Parse(Request.QueryString["ID"].ToString())); this.Label1.Text = Model.MeetingTitle; this.Label9.Text = Model.HuiYiJiYao; this.Label2.Text = Model.MeetingZhuTi; this.Label3.Text = Model.MiaoShu; this.Label4.Text = Model.ChuXiRen; this.Label5.Text = Model.WangLuoHuiYiShiIP; MettingIp = this.Label5.Text; this.Label6.Text = Model.HuiYiZhuChi; this.Label7.Text = Model.KaiShiTime.ToString(); this.Label8.Text = Model.JieShuTime.ToString(); //写系统日志 ZWL.BLL.ERPRiZhi MyRiZhi = new ZWL.BLL.ERPRiZhi(); MyRiZhi.UserName = ZWL.Common.PublicMethod.GetSessionValue("UserName"); MyRiZhi.DoSomething = "用户进入会议(" + this.Label1.Text + ")"; MyRiZhi.IpStr = System.Web.HttpContext.Current.Request.UserHostAddress.ToString(); MyRiZhi.Add(); } }
protected void ImageButton1_Click(object sender, ImageClickEventArgs e) { if (this.TextBox4.Text.Contains("_")) { ZWL.BLL.ERPPOPAndSMTP MyModel = new ZWL.BLL.ERPPOPAndSMTP(); MyModel.ID = int.Parse(ZWL.Common.PublicMethod.GetSessionValue("UserID")); MyModel.POP3UserName = this.TextBox1.Text; MyModel.POP3UserPwd = this.TextBox2.Text; MyModel.POP3Server = this.TextBox3.Text; MyModel.POP3Port = this.TextBox4.Text; MyModel.SMTPUserName = this.TextBox5.Text; MyModel.SMTPUserPwd = this.TextBox6.Text; MyModel.SMTPServer = this.TextBox7.Text; MyModel.SMTPFromEmail = this.TextBox8.Text; MyModel.Update(); ZWL.Common.MessageBox.Show(this, "修改邮件参数成功!"); //写系统日志 ZWL.BLL.ERPRiZhi MyRiZhi = new ZWL.BLL.ERPRiZhi(); MyRiZhi.UserName = ZWL.Common.PublicMethod.GetSessionValue("UserName"); MyRiZhi.DoSomething = "用户设置邮件参数"; MyRiZhi.IpStr = System.Web.HttpContext.Current.Request.UserHostAddress.ToString(); MyRiZhi.Add(); } else { ZWL.Common.MessageBox.Show(this, "请用_将SMTP端口与POP3端口隔开!"); } }
protected void Page_Load(object sender, EventArgs e) { if (!Page.IsPostBack) { ZWL.Common.PublicMethod.CheckSession(); ZWL.BLL.ERPBook Model = new ZWL.BLL.ERPBook(); Model.GetModel(int.Parse(Request.QueryString["ID"].ToString())); this.lblBookName.Text=Model.BookName.ToString(); this.lblBookSerils.Text=Model.BookSerils.ToString(); this.lblSuoShuBuMen.Text=Model.SuoShuBuMen.ToString(); this.lblBookType.Text=Model.BookType.ToString(); this.lblAuother.Text=Model.Auother.ToString(); this.lblISBN.Text=Model.ISBN.ToString(); this.lblCoperStr.Text=Model.CoperStr.ToString(); this.lblChuBanDate.Text=Model.ChuBanDate.ToString(); this.lblCunFangDian.Text=Model.CunFangDian.ToString(); this.lblShuLiang.Text=Model.ShuLiang.ToString(); this.lblJiaGe.Text=Model.JiaGe.ToString(); this.lblNeiRong.Text=Model.NeiRong.ToString(); this.lblNowState.Text=Model.NowState.ToString(); this.lblBackInfo.Text=Model.BackInfo.ToString(); this.lblUserName.Text=Model.UserName.ToString(); this.lblTimeStr.Text=Model.TimeStr.ToString(); //дϵͳ��־ ZWL.BLL.ERPRiZhi MyRiZhi = new ZWL.BLL.ERPRiZhi(); MyRiZhi.UserName = ZWL.Common.PublicMethod.GetSessionValue("UserName"); MyRiZhi.DoSomething = "�û��鿴ͼ����Ϣ(" + this.lblBookName.Text + ")"; MyRiZhi.IpStr = System.Web.HttpContext.Current.Request.UserHostAddress.ToString(); MyRiZhi.Add(); } }
protected void ImageButton1_Click(object sender, ImageClickEventArgs e) { ZWL.BLL.ERPTaskFP Model = new ZWL.BLL.ERPTaskFP(); Model.ID = int.Parse(Request.QueryString["ID"].ToString()); Model.TaskTitle=this.txtTaskTitle.Text.ToString(); Model.TaskContent=this.txtTaskContent.Text.ToString(); Model.FromUser=this.txtFromUser.Text.ToString(); Model.ToUserList=this.txtToUserList.Text.ToString(); Model.XinXiGouTong=this.txtXinXiGouTong.Text.ToString(); Model.JinDu=decimal.Parse(this.txtJinDu.Text); Model.WanCheng=this.txtWanCheng.Text.ToString(); Model.NowState = this.DropDownList1.SelectedValue.ToString(); Model.KSSJ = DateTime.Parse(this.TextBox3.Text.Trim() + " " + this.DropDownList2.SelectedItem.Text + ":" + this.DropDownList3.SelectedItem.Text + ":00"); Model.JSSJ = DateTime.Parse(this.TextBox2.Text.Trim() + " " + this.DropDownList4.SelectedItem.Text + ":" + this.DropDownList5.SelectedItem.Text + ":00"); Model.FKSJ = DateTime.Parse(this.TextBox4.Text.Trim() + " " + this.DropDownList6.SelectedItem.Text + ":" + this.DropDownList7.SelectedItem.Text + ":00"); Model.SFFK = this.TX.Value; Model.Update(); //���Ͷ��� SendMainAndSms.SendMessage(CHKSMS, CHKMOB, "�����µ�������Ҫִ�У�(" + this.txtTaskTitle.Text + ")", this.txtToUserList.Text.Trim()); //дϵͳ��־ ZWL.BLL.ERPRiZhi MyRiZhi = new ZWL.BLL.ERPRiZhi(); MyRiZhi.UserName = ZWL.Common.PublicMethod.GetSessionValue("UserName"); MyRiZhi.DoSomething = "�û������������Ϣ(" + this.txtTaskTitle.Text + ")"; MyRiZhi.IpStr = System.Web.HttpContext.Current.Request.UserHostAddress.ToString(); MyRiZhi.Add(); ZWL.Common.MessageBox.ShowAndRedirect(this, "���������Ϣ�ijɹ���", "TaskFP.aspx"); }
protected void Send(int id) { if (id != 0) { ZWL.BLL.ERPMobile MyModel = new ZWL.BLL.ERPMobile(); MyModel.GetModel(id); if (ZWL.Common.PublicMethod.StrIFIn("内部人员:", MyModel.ToUserList) == true) { //内部 Mobile.SendSMS(MyModel.FaSongUser, MyModel.ToUserList.Replace("内部人员:", ""), MyModel.ContentStr); } else { //外部 Mobile.SendSMS2(MyModel.FaSongUser, MyModel.ToUserList.Replace("外部人员:", ""), MyModel.ContentStr); } } DataBindToGridview(); //写系统日志 ZWL.BLL.ERPRiZhi MyRiZhi = new ZWL.BLL.ERPRiZhi(); MyRiZhi.UserName = ZWL.Common.PublicMethod.GetSessionValue("UserName"); MyRiZhi.DoSomething = "用户发送已发送手机短信中的信息"; MyRiZhi.IpStr = System.Web.HttpContext.Current.Request.UserHostAddress.ToString(); MyRiZhi.Add(); Response.Write("<script>alert(手机短信发送完毕!');</script>"); }
protected void ImageButton1_Click(object sender, ImageClickEventArgs e) { ZWL.BLL.ERPDangAn Model = new ZWL.BLL.ERPDangAn(); Model.FileName=this.txtFileName.Text.ToString(); Model.JuanKuName=this.txtJuanKuName.Text.ToString(); Model.FileSerils=this.txtFileSerils.Text.ToString(); Model.FileTitle=this.txtFileTitle.Text.ToString(); Model.FaWenDanWei=this.txtFaWenDanWei.Text.ToString(); Model.FaWenDate=this.txtFaWenDate.Text.ToString(); Model.MiJi=this.txtMiJi.Text.ToString(); Model.JingJi=this.txtJingJi.Text.ToString(); Model.TypeStr=this.txtTypeStr.Text.ToString(); Model.GongWenType=this.txtGongWenType.Text.ToString(); Model.FilePage=this.txtFilePage.Text.ToString(); Model.FuJianList=ZWL.Common.PublicMethod.GetSessionValue("WenJianList"); Model.BackInfo=this.txtBackInfo.Text.ToString(); Model.UserName=ZWL.Common.PublicMethod.GetSessionValue("UserName"); Model.TimeStr=DateTime.Now; Model.Add(); //дϵͳ��־ ZWL.BLL.ERPRiZhi MyRiZhi = new ZWL.BLL.ERPRiZhi(); MyRiZhi.UserName = ZWL.Common.PublicMethod.GetSessionValue("UserName"); MyRiZhi.DoSomething = "�û���ӵ����ļ���Ϣ(" + this.txtFileName.Text + ")"; MyRiZhi.IpStr = System.Web.HttpContext.Current.Request.UserHostAddress.ToString(); MyRiZhi.Add(); ZWL.Common.MessageBox.ShowAndRedirect(this, "�����ļ���Ϣ��ӳɹ���", "DangAn.aspx?JuanKuName=" + Request.QueryString["JuanKuName"].ToString()); }
protected void Page_Load(object sender, EventArgs e) { if (!Page.IsPostBack) { ZWL.Common.PublicMethod.CheckSession(); //绑定页面数据 ZWL.BLL.ERPWorkPlan MyModel = new ZWL.BLL.ERPWorkPlan(); MyModel.GetModel(int.Parse(Request.QueryString["ID"].ToString())); if (MyModel!=null) { this.Label1.Text = MyModel.TitleStr; this.Label2.Text = MyModel.CanLookUser; this.Label6.Text = MyModel.ContentStr; this.Label4.Text = MyModel.UserName; this.Label5.Text = MyModel.TimeStr.ToString(); this.HyperLink1.NavigateUrl = "../LanEmail/LanEmailAdd.aspx?UserName="******"&fanhui=0"; this.Label3.Text = ZWL.Common.PublicMethod.GetWenJian(MyModel.FuJianStr, "../UploadFile/"); } //写系统日志 ZWL.BLL.ERPRiZhi MyRiZhi = new ZWL.BLL.ERPRiZhi(); MyRiZhi.UserName = ZWL.Common.PublicMethod.GetSessionValue("UserName"); MyRiZhi.DoSomething = "查看工作计划信息(" + this.Label1.Text + ")"; MyRiZhi.IpStr = System.Web.HttpContext.Current.Request.UserHostAddress.ToString(); MyRiZhi.Add(); } }
protected void ImageButton1_Click(object sender, ImageClickEventArgs e) { ZWL.BLL.ERPPeiXun Model = new ZWL.BLL.ERPPeiXun(); Model.ID = int.Parse(Request.QueryString["ID"].ToString()); Model.PeiXunName=this.txtPeiXunName.Text.ToString(); Model.PeiXunUser=this.txtPeiXunUser.Text.ToString(); Model.CanYuUser=this.txtCanYuUser.Text.ToString(); Model.StartDate=this.txtStartDate.Text.ToString(); Model.EndDate=this.txtEndDate.Text.ToString(); Model.PeiXunMuDi=this.txtPeiXunMuDi.Text.ToString(); Model.PeiXunNeiRong=this.txtPeiXunNeiRong.Text.ToString(); Model.XiaoGuo=this.txtXiaoGuo.Text.ToString(); Model.BackInfo=this.txtBackInfo.Text.ToString(); Model.FuJianList=ZWL.Common.PublicMethod.GetSessionValue("WenJianList"); Model.UserName=this.txtUserName.Text.ToString(); Model.TimeStr=DateTime.Parse(this.txtTimeStr.Text); Model.Update(); //дϵͳ��־ ZWL.BLL.ERPRiZhi MyRiZhi = new ZWL.BLL.ERPRiZhi(); MyRiZhi.UserName = ZWL.Common.PublicMethod.GetSessionValue("UserName"); MyRiZhi.DoSomething = "�û�����ѵ��Ϣ(" + this.txtPeiXunName.Text + ")"; MyRiZhi.IpStr = System.Web.HttpContext.Current.Request.UserHostAddress.ToString(); MyRiZhi.Add(); ZWL.Common.MessageBox.ShowAndRedirect(this, "��ѵ��Ϣ�ijɹ���", "PeiXun.aspx"); }
protected void ImageButton1_Click(object sender, ImageClickEventArgs e) { ZWL.BLL.ERPJiangCheng Model = new ZWL.BLL.ERPJiangCheng(); Model.JCUser=this.txtJCUser.Text.ToString(); Model.JiangChengQuFen=this.txtJiangChengQuFen.Text.ToString(); Model.JiangChengType=this.txtJiangChengType.Text.ToString(); Model.ShouYuDanWei=this.txtShouYuDanWei.Text.ToString(); Model.JiangChengDate=this.txtJiangChengDate.Text.ToString(); Model.JiangChengMingMu=this.txtJiangChengMingMu.Text.ToString(); Model.JiangChengYuanYin=this.txtJiangChengYuanYin.Text.ToString(); Model.BackInfo=this.txtBackInfo.Text.ToString(); Model.UserName=ZWL.Common.PublicMethod.GetSessionValue("UserName"); Model.TimeStr=DateTime.Now; Model.Add(); //дϵͳ��־ ZWL.BLL.ERPRiZhi MyRiZhi = new ZWL.BLL.ERPRiZhi(); MyRiZhi.UserName = ZWL.Common.PublicMethod.GetSessionValue("UserName"); MyRiZhi.DoSomething = "�û���ӽ��ͼ�¼��Ϣ(" + this.txtJCUser.Text + ")"; MyRiZhi.IpStr = System.Web.HttpContext.Current.Request.UserHostAddress.ToString(); MyRiZhi.Add(); ZWL.Common.MessageBox.ShowAndRedirect(this, "���ͼ�¼��Ϣ��ӳɹ���", "JiangCheng.aspx"); }
protected void ImageButton1_Click(object sender, EventArgs e) { ZWL.BLL.ERPWorkRiZhi Model = new ZWL.BLL.ERPWorkRiZhi(); Model.TitleStr = this.TextBox1.Text; Model.ContentStr = this.TxtContent.Text; Model.TypeStr = this.TextBox5.Text.Trim(); Model.TimeStr = DateTime.Now; Model.UserName = ZWL.Common.PublicMethod.GetSessionValue("UserName"); Model.Add(); //写系统日志 ZWL.BLL.ERPRiZhi MyRiZhi = new ZWL.BLL.ERPRiZhi(); MyRiZhi.UserName = ZWL.Common.PublicMethod.GetSessionValue("UserName"); MyRiZhi.DoSomething = "用户添加工作日志信息(" + this.TextBox1.Text + ")"; MyRiZhi.IpStr = System.Web.HttpContext.Current.Request.UserHostAddress.ToString(); MyRiZhi.Add(); ZWL.Common.MessageBox.ShowAndRedirect(this, "工作日志添加成功!", "WorkRiZhi.aspx"); }
protected void ImageButton3_Click(object sender, EventArgs e) { string IDlist = ZWL.Common.PublicMethod.CheckCbx(this.GVData, "CheckSelect", "LabVisible"); if (ZWL.DBUtility.DbHelperSQL.ExecuteSQL("delete from ERPWorkToDo where ID in (" + IDlist + ")") == -1) { Response.Write("<script>alert('删除选中记录时发生错误!请重新登陆后重试!');</script>"); } else { DataBindToGridview(); //写系统日志 ZWL.BLL.ERPRiZhi MyRiZhi = new ZWL.BLL.ERPRiZhi(); MyRiZhi.UserName = ZWL.Common.PublicMethod.GetSessionValue("UserName"); MyRiZhi.DoSomething = "用户删除归档工作"; MyRiZhi.IpStr = System.Web.HttpContext.Current.Request.UserHostAddress.ToString(); MyRiZhi.Add(); } }
protected void ImageButton3_Click(object sender, ImageClickEventArgs e) { string IDlist = ZWL.Common.PublicMethod.CheckCbx(this.GVData, "CheckSelect", "LabVisible"); if (ZWL.DBUtility.DbHelperSQL.ExecuteSQL("update ERPFileList set IFDel='是' where ( (UserName='******') or (','+CanDel+',' like '%," + ZWL.Common.PublicMethod.GetSessionValue("UserName") + ",%')) and ID in (" + IDlist + ")") == -1) { Response.Write("<script>alert('删除选中记录时发生错误!请重新登陆后重试!');</script>"); } else { DataBindToGridview(); //写系统日志 ZWL.BLL.ERPRiZhi MyRiZhi = new ZWL.BLL.ERPRiZhi(); MyRiZhi.UserName = ZWL.Common.PublicMethod.GetSessionValue("UserName"); MyRiZhi.DoSomething = "用户删除文档信息"; MyRiZhi.IpStr = System.Web.HttpContext.Current.Request.UserHostAddress.ToString(); MyRiZhi.Add(); } }
protected void ImageButton1_Click(object sender, EventArgs e) { ZWL.BLL.ERPGongGao Model = new ZWL.BLL.ERPGongGao(); Model.TitleStr = this.TextBox1.Text; Model.FuJian = ZWL.Common.PublicMethod.GetSessionValue("WenJianList"); Model.TypeStr = Request.QueryString["Type"].ToString(); Model.ContentStr = this.TxtContent.Text; Model.ID = int.Parse(Request.QueryString["ID"].ToString()); Model.Update(); //写系统日志 ZWL.BLL.ERPRiZhi MyRiZhi = new ZWL.BLL.ERPRiZhi(); MyRiZhi.UserName = ZWL.Common.PublicMethod.GetSessionValue("UserName"); MyRiZhi.DoSomething = "用户修改公告通知信息(" + this.TextBox1.Text + ")"; MyRiZhi.IpStr = System.Web.HttpContext.Current.Request.UserHostAddress.ToString(); MyRiZhi.Add(); ZWL.Common.MessageBox.ShowAndRedirect(this, "公告通知信息修改成功!", "GongGao.aspx?Type=" + Request.QueryString["Type"].ToString()); }
protected void Page_Load(object sender, EventArgs e) { if (!Page.IsPostBack) { ZWL.Common.PublicMethod.CheckSession(); ZWL.BLL.ERPLinkMan model = new ZWL.BLL.ERPLinkMan(); model.GetModel(int.Parse(Request.QueryString["ID"].ToString())); this.lblCustomName.Text = model.CustomName; this.lblNameStr.Text = model.NameStr; this.lblSex.Text = model.Sex; this.lblBirthDay.Text = model.BirthDay; this.lblSuoChuJiaoSe.Text = model.SuoChuJiaoSe; this.lblZhiWu.Text = model.ZhiWu; this.lblPeiOu.Text = model.PeiOu; this.lblZiNv.Text = model.ZiNv; this.lblDanWieDianHua.Text = model.DanWieDianHua; this.lblDanWeiChuanZhen.Text = model.DanWeiChuanZhen; this.lblJiaTingZhuZhi.Text = model.JiaTingZhuZhi; this.lblJiaTingYouBian.Text = model.JiaTingYouBian; this.lblJiaTingDianHua.Text = model.JiaTingDianHua; this.lblShouJi.Text = model.ShouJi; this.lblXiaoLingTong.Text = model.XiaoLingTong; this.lblEmail.Text = model.Email; this.lblQQ.Text = model.QQ; this.lblMsn.Text = model.Msn; this.lblBackInfo.Text = model.BackInfo; this.lblUserName.Text = model.UserName; this.lblTimeStr.Text = model.TimeStr.ToString(); this.lblIFShare.Text = model.IFShare; this.lblCusBakA.Text = model.CusBakA; this.lblCusBakB.Text = model.CusBakB; this.lblCusBakC.Text = model.CusBakC; this.lblCusBakD.Text = model.CusBakD; this.lblCusBakE.Text = model.CusBakE; //写系统日志 ZWL.BLL.ERPRiZhi MyRiZhi = new ZWL.BLL.ERPRiZhi(); MyRiZhi.UserName = ZWL.Common.PublicMethod.GetSessionValue("UserName"); MyRiZhi.DoSomething = "用户查看联系人信息(" + this.lblCustomName.Text + ")"; MyRiZhi.IpStr = System.Web.HttpContext.Current.Request.UserHostAddress.ToString(); MyRiZhi.Add(); } }
protected void ImageButton1_Click(object sender, ImageClickEventArgs e) { ZWL.BLL.ERPNFormType Model = new ZWL.BLL.ERPNFormType(); Model.TypeName = this.txtTypeName.Text.ToString(); Model.PaiXuStr = this.txtPaiXuStr.Text.ToString(); Model.BackInfo = this.txtBackInfo.Text.ToString(); Model.Add(); //写系统日志 ZWL.BLL.ERPRiZhi MyRiZhi = new ZWL.BLL.ERPRiZhi(); MyRiZhi.UserName = ZWL.Common.PublicMethod.GetSessionValue("UserName"); MyRiZhi.DoSomething = "用户添加表单分类信息(" + this.txtTypeName.Text + ")"; MyRiZhi.IpStr = System.Web.HttpContext.Current.Request.UserHostAddress.ToString(); MyRiZhi.Add(); ZWL.Common.MessageBox.ShowAndRedirect(this, "表单分类信息添加成功!", "NFormType.aspx"); }
protected void Page_Load(object sender, EventArgs e) { if (!Page.IsPostBack) { ZWL.Common.PublicMethod.CheckSession(); ZWL.BLL.ERPNFormType Model = new ZWL.BLL.ERPNFormType(); Model.GetModel(int.Parse(Request.QueryString["ID"].ToString())); this.lblTypeName.Text = Model.TypeName.ToString(); this.lblPaiXuStr.Text = Model.PaiXuStr.ToString(); this.lblBackInfo.Text = Model.BackInfo.ToString(); //写系统日志 ZWL.BLL.ERPRiZhi MyRiZhi = new ZWL.BLL.ERPRiZhi(); MyRiZhi.UserName = ZWL.Common.PublicMethod.GetSessionValue("UserName"); MyRiZhi.DoSomething = "用户查看表单分类信息(" + this.lblTypeName.Text + ")"; MyRiZhi.IpStr = System.Web.HttpContext.Current.Request.UserHostAddress.ToString(); MyRiZhi.Add(); } }
protected void ImageButton1_Click(object sender, ImageClickEventArgs e) { string FileNameStr = ZWL.Common.PublicMethod.UploadFileIntoDir(this.FileUpload1, DateTime.Now.Ticks.ToString() + System.IO.Path.GetExtension(FileUpload1.PostedFile.FileName)); if (FileNameStr.Trim().Length > 0) { ZWL.BLL.ERPFileList MyModel = new ZWL.BLL.ERPFileList(); MyModel.FileName = System.IO.Path.GetFileName(FileUpload1.PostedFile.FileName); MyModel.BianHao = this.TextBox1.Text; MyModel.BackInfo = this.TxtContent.Text; MyModel.DaXiao = (this.FileUpload1.PostedFile.ContentLength / 1024) + 1; try { MyModel.FileType = this.FileUpload1.FileName.Remove(0, this.FileUpload1.FileName.LastIndexOf('.') + 1); } catch { } MyModel.DirID = int.Parse(Request.QueryString["DirID"].ToString()); MyModel.ShangChuanTime = DateTime.Now; MyModel.FilePath = FileNameStr; MyModel.UserName = ZWL.Common.PublicMethod.GetSessionValue("UserName"); MyModel.IFDel = "否"; MyModel.TypeName = Request.QueryString["Type"].ToString(); MyModel.IfShare = "否"; MyModel.DirOrFile = 0; MyModel.CanView = txtCanView.Text; MyModel.CanAdd = txtCanAdd.Text; MyModel.CanMod = txtCanMod.Text; MyModel.CanDel = txtCanDel.Text; MyModel.Add(); //写系统日志 ZWL.BLL.ERPRiZhi MyRiZhi = new ZWL.BLL.ERPRiZhi(); MyRiZhi.UserName = ZWL.Common.PublicMethod.GetSessionValue("UserName"); MyRiZhi.DoSomething = "用户添加文件信息(" + System.IO.Path.GetFileName(FileUpload1.PostedFile.FileName) + ")"; MyRiZhi.IpStr = System.Web.HttpContext.Current.Request.UserHostAddress.ToString(); MyRiZhi.Add(); ZWL.Common.MessageBox.ShowAndRedirect(this, "文件添加成功!", "DocCenter.aspx?Type=" + Request.QueryString["Type"].ToString() + "&DirID=" + Request.QueryString["DirID"].ToString()); } }
protected void ImageButton2_Click(object sender, ImageClickEventArgs e) { string IDlist = ZWL.Common.PublicMethod.CheckCbx(this.GVData, "CheckSelect", "LabVisible"); if (ZWL.DBUtility.DbHelperSQL.ExecuteSQL("update ERPNetEmail set EmailState='已发' where ID in (" + IDlist + ")") == -1) { Response.Write("<script>alert('发送邮件时发生错误!请重新登陆后重试!');</script>"); } else { string[] IDArray = IDlist.Split(','); for (int jk = 0; jk < IDArray.Length; jk++) { if (IDArray[jk].Trim().Length > 0 && IDArray[jk].Trim() != "0") { ZWL.BLL.ERPNetEmail MyModel = new ZWL.BLL.ERPNetEmail(); MyModel.GetModel(int.Parse(IDArray[jk].Trim())); //Jmail发送邮件到InterNet ZWL.BLL.ERPPOPAndSMTP MySMTPModel = new ZWL.BLL.ERPPOPAndSMTP(); MySMTPModel.GetModel(int.Parse(ZWL.Common.PublicMethod.GetSessionValue("UserID"))); //发送邮件到Internet地址 try { Pop3ForJmail.SendMail(MySMTPModel.SMTPUserName, MySMTPModel.SMTPUserPwd, MySMTPModel.SMTPServer, MyModel.EmailTitle, MyModel.EmailContent, MySMTPModel.SMTPFromEmail, MyModel.ToUser, MyModel.FuJian); } catch { //Response.Write("<script>alert('发送邮件时发生错误,请检查您的邮件参数设置是否正确!');</script>"); } } } DataBindToGridview(); //写系统日志 ZWL.BLL.ERPRiZhi MyRiZhi = new ZWL.BLL.ERPRiZhi(); MyRiZhi.UserName = ZWL.Common.PublicMethod.GetSessionValue("UserName"); MyRiZhi.DoSomething = "用户发送草稿箱中的邮件"; MyRiZhi.IpStr = System.Web.HttpContext.Current.Request.UserHostAddress.ToString(); MyRiZhi.Add(); Response.Write("<script>alert('邮件发送完毕!');</script>"); } }
protected void ImageButton1_Click(object sender, ImageClickEventArgs e) { DataEntityDataContext context = new DataEntityDataContext(); ERPRecive Model = new ERPRecive(); Model.HeTongName = this.txtHeTongName.Text.ToString(); Model.QianYueKeHu = this.txtQianYueKeHu.Text.ToString(); Model.HTJE = this.txtHeTongMiaoShu.Text.ToString(); Model.TiXingDate = DateTime.Parse(this.txtShengXiaoDate.Text); Model.DaoKuanDate = DateTime.Parse(this.txtTiXingDate.Text); Model.CreateTime = DateTime.Now; Model.CreateUser = ZWL.Common.PublicMethod.GetSessionValue("UserName"); Model.BackInfo = this.txtBackInfo.Text.ToString(); Model.SFDK = "否"; Model.NowState = "F"; context.ERPRecive.InsertOnSubmit(Model); context.SubmitChanges(); ERPYS ys = new ERPYS(); ys.FKID = Model.ID; ys.HeTongName = this.txtHeTongName.Text.ToString(); ys.QianYueKeHu = this.txtQianYueKeHu.Text.ToString(); ys.HTJE = this.txtHeTongMiaoShu.Text.ToString(); ys.TiXingDate = DateTime.Parse(this.txtShengXiaoDate.Text); ys.DaoKuanDate = DateTime.Parse(this.txtTiXingDate.Text); ys.CreateTime = DateTime.Now; ys.CreateUser = ZWL.Common.PublicMethod.GetSessionValue("UserName"); ys.BackInfo = this.txtBackInfo.Text.ToString(); ys.SFDK = "否"; ys.NowState = "F"; context.ERPYS.InsertOnSubmit(ys); context.SubmitChanges(); //写系统日志 ZWL.BLL.ERPRiZhi MyRiZhi = new ZWL.BLL.ERPRiZhi(); MyRiZhi.UserName = ZWL.Common.PublicMethod.GetSessionValue("UserName"); MyRiZhi.DoSomething = "用户添加付款计划信息(" + this.txtHeTongName.Text + ")"; MyRiZhi.IpStr = System.Web.HttpContext.Current.Request.UserHostAddress.ToString(); MyRiZhi.Add(); ZWL.Common.MessageBox.ShowAndRedirect(this, "付款计划信息添加成功!", "FK.aspx"); }
protected void Page_Load(object sender, EventArgs e) { if (!Page.IsPostBack) { ZWL.Common.PublicMethod.CheckSession(); ZWL.BLL.ERPTiKu Model = new ZWL.BLL.ERPTiKu(); Model.GetModel(int.Parse(Request.QueryString["ID"].ToString())); this.lblTitleStr.Text = Model.TitleStr.ToString(); this.lblItemsA.Text = Model.ItemsA.ToString(); this.lblItemsB.Text = Model.ItemsB.ToString(); this.lblItemsC.Text = Model.ItemsC.ToString(); this.lblItemsD.Text = Model.ItemsD.ToString(); this.lblItemsE.Text = Model.ItemsE.ToString(); this.lblItemsF.Text = Model.ItemsF.ToString(); this.lblItemsG.Text = Model.ItemsG.ToString(); this.lblItemsH.Text = Model.ItemsH.ToString(); this.lblAnswerStr.Text = Model.AnswerStr.ToString(); //判断题目类型,然后设置Panel的显示与否 if (Request.QueryString["FenLeiStr"].ToString() == "判断题") { this.Panel2.Visible = false; this.Panel1.Visible = true; } else if (Request.QueryString["FenLeiStr"].ToString() == "填空题") { this.Panel1.Visible = false; this.Panel2.Visible = false; } else if (Request.QueryString["FenLeiStr"].ToString() == "简答题") { this.Panel1.Visible = false; this.Panel2.Visible = false; } //写系统日志 ZWL.BLL.ERPRiZhi MyRiZhi = new ZWL.BLL.ERPRiZhi(); MyRiZhi.UserName = ZWL.Common.PublicMethod.GetSessionValue("UserName"); MyRiZhi.DoSomething = "用户查看题库管理信息(" + this.lblTitleStr.Text + ")"; MyRiZhi.IpStr = System.Web.HttpContext.Current.Request.UserHostAddress.ToString(); MyRiZhi.Add(); } }
protected void ImageButton1_Click(object sender, ImageClickEventArgs e) { string FileNameStr = ZWL.Common.PublicMethod.UploadFileIntoDir(this.FileUpload1, DateTime.Now.Ticks.ToString() + System.IO.Path.GetExtension(FileUpload1.PostedFile.FileName)); if (FileNameStr.Trim().Length > 0) { ZWL.BLL.ERPRedHead MyModel = new ZWL.BLL.ERPRedHead(); MyModel.ID = int.Parse(Request.QueryString["ID"].ToString()); MyModel.FilePath = FileNameStr; MyModel.FileName = this.TextBox1.Text; MyModel.TimeStr = DateTime.Now; MyModel.UserName = ZWL.Common.PublicMethod.GetSessionValue("UserName"); MyModel.Update(); //写系统日志 ZWL.BLL.ERPRiZhi MyRiZhi = new ZWL.BLL.ERPRiZhi(); MyRiZhi.UserName = ZWL.Common.PublicMethod.GetSessionValue("UserName"); MyRiZhi.DoSomething = "用户修改红头文件(" + this.TextBox1.Text + ")"; MyRiZhi.IpStr = System.Web.HttpContext.Current.Request.UserHostAddress.ToString(); MyRiZhi.Add(); ZWL.Common.MessageBox.ShowAndRedirect(this, "红头文件修改成功!", "RedHeadFile.aspx"); } else if (FileUpload1.PostedFile.FileName.Trim().Length <= 0) { ZWL.BLL.ERPRedHead MyModel = new ZWL.BLL.ERPRedHead(); MyModel.ID = int.Parse(Request.QueryString["ID"].ToString()); MyModel.FilePath = this.Label1.Text; MyModel.FileName = this.TextBox1.Text; MyModel.TimeStr = DateTime.Now; MyModel.UserName = ZWL.Common.PublicMethod.GetSessionValue("UserName"); MyModel.Update(); //写系统日志 ZWL.BLL.ERPRiZhi MyRiZhi = new ZWL.BLL.ERPRiZhi(); MyRiZhi.UserName = ZWL.Common.PublicMethod.GetSessionValue("UserName"); MyRiZhi.DoSomething = "用户修改红头文件(" + this.TextBox1.Text + ")"; MyRiZhi.IpStr = System.Web.HttpContext.Current.Request.UserHostAddress.ToString(); MyRiZhi.Add(); ZWL.Common.MessageBox.ShowAndRedirect(this, "红头文件修改成功!", "RedHeadFile.aspx"); } }
protected void Page_Load(object sender, EventArgs e) { if (!Page.IsPostBack) { ZWL.Common.PublicMethod.CheckSession(); ZWL.BLL.ERPMoBan MyModel = new ZWL.BLL.ERPMoBan(); MyModel.GetModel(int.Parse(Request.QueryString["ID"].ToString())); this.Label1.Text = MyModel.TitleStr; this.Label2.Text = MyModel.IFShare; this.Label3.Text = MyModel.ContentStr; //写系统日志 ZWL.BLL.ERPRiZhi MyRiZhi = new ZWL.BLL.ERPRiZhi(); MyRiZhi.UserName = ZWL.Common.PublicMethod.GetSessionValue("UserName"); MyRiZhi.DoSomething = "查看模板信息(" + this.Label1.Text + ")"; MyRiZhi.IpStr = System.Web.HttpContext.Current.Request.UserHostAddress.ToString(); MyRiZhi.Add(); } }
protected void ImageButton1_Click(object sender, ImageClickEventArgs e) { ZWL.BLL.ERPTiKuType Model = new ZWL.BLL.ERPTiKuType(); Model.ID = int.Parse(Request.QueryString["ID"].ToString()); Model.TiKuName = this.txtTiKuName.Text.ToString(); Model.PaiXu = this.txtPaiXu.Text.ToString(); Model.Update(); //写系统日志 ZWL.BLL.ERPRiZhi MyRiZhi = new ZWL.BLL.ERPRiZhi(); MyRiZhi.UserName = ZWL.Common.PublicMethod.GetSessionValue("UserName"); MyRiZhi.DoSomething = "用户修改题库分类信息(" + this.txtTiKuName.Text + ")"; MyRiZhi.IpStr = System.Web.HttpContext.Current.Request.UserHostAddress.ToString(); MyRiZhi.Add(); ZWL.Common.MessageBox.ShowAndRedirect(this, "题库分类信息修改成功!", "TiKuType.aspx"); }
protected void Page_Load(object sender, EventArgs e) { if (!Page.IsPostBack) { ZWL.Common.PublicMethod.CheckSession(); ZWL.BLL.ERPBuyChanPin Model = new ZWL.BLL.ERPBuyChanPin(); Model.GetModel(int.Parse(Request.QueryString["ID"].ToString())); this.lblOrderName.Text = Model.OrderName.ToString(); this.lblProductName.Text = Model.ProductName.ToString(); this.lblProductSerils.Text = Model.ProductSerils.ToString(); this.lblGongYingShang.Text = Model.GongYingShang.ToString(); this.lblProductType.Text = Model.ProductType.ToString(); this.lblXingHao.Text = Model.XingHao.ToString(); this.lblDanWei.Text = Model.DanWei.ToString(); this.lblDanJia.Text = Model.DanJia.ToString(); this.lblShuLiang.Text = Model.ShuLiang.ToString(); this.lblZongJia.Text = Model.ZongJia.ToString(); this.lblYiFuKuan.Text = Model.YiFuKuan.ToString(); this.lblQianKuanShu.Text = Model.QianKuanShu.ToString(); this.lblIFJiaoFu.Text = Model.IFJiaoFu.ToString(); this.lblChanPinMiaoShu.Text = Model.ChanPinMiaoShu.ToString(); this.lblUserName.Text = Model.UserName.ToString(); this.lblTimeStr.Text = Model.TimeStr.ToString(); this.lblBackInfo.Text = Model.BackInfo.ToString(); ZWL.BLL.ERPProduct ModelProduct = new ZWL.BLL.ERPProduct(); ModelProduct.GetModelByName(Model.ProductName.ToString()); this.lblProductSize.Text = ModelProduct.ProductSize; this.lblPerformance.Text = ModelProduct.Performance; this.lblCoating.Text = ModelProduct.Coating; this.lblSurfaceTreatment.Text = ModelProduct.SurfaceTreatment; this.lblMagnetizingDirection.Text = ModelProduct.MagnetizingDirection; this.lblTolerance.Text = ModelProduct.Tolerance; this.lblIsContainingTax.Text = ModelProduct.IsContainingTax == 1 ? "是" : "否"; //写系统日志 ZWL.BLL.ERPRiZhi MyRiZhi = new ZWL.BLL.ERPRiZhi(); MyRiZhi.UserName = ZWL.Common.PublicMethod.GetSessionValue("UserName"); MyRiZhi.DoSomething = "用户查看采购订单产品信息(" + this.lblOrderName.Text + ")"; MyRiZhi.IpStr = System.Web.HttpContext.Current.Request.UserHostAddress.ToString(); MyRiZhi.Add(); } }
protected void ImageButton1_Click(object sender, ImageClickEventArgs e) { ZWL.BLL.ERPLinkMan model = new ZWL.BLL.ERPLinkMan(); model.ID = int.Parse(Request.QueryString["ID"].ToString()); model.CustomName = this.txtCustomName.Text; model.NameStr = this.txtNameStr.Text; model.Sex = this.txtSex.Text; model.BirthDay = this.txtBirthDay.Text; model.SuoChuJiaoSe = this.txtSuoChuJiaoSe.Text; model.ZhiWu = this.txtZhiWu.Text; model.PeiOu = this.txtPeiOu.Text; model.ZiNv = this.txtZiNv.Text; model.DanWieDianHua = this.txtDanWieDianHua.Text; model.DanWeiChuanZhen = this.txtDanWeiChuanZhen.Text; model.JiaTingZhuZhi = this.txtJiaTingZhuZhi.Text; model.JiaTingYouBian = this.txtJiaTingYouBian.Text; model.JiaTingDianHua = this.txtJiaTingDianHua.Text; model.ShouJi = this.txtShouJi.Text; model.XiaoLingTong = this.txtXiaoLingTong.Text; model.Email = this.txtEmail.Text; model.QQ = this.txtQQ.Text; model.Msn = this.txtMsn.Text; model.BackInfo = this.txtBackInfo.Text; model.UserName = this.Label1.Text; model.TimeStr = DateTime.Parse(this.Label2.Text); model.IFShare = this.txtIFShare.Text; model.CusBakA = this.txtCusBakA.Text; model.CusBakB = this.txtCusBakB.Text; model.CusBakC = this.txtCusBakC.Text; model.CusBakD = this.txtCusBakD.Text; model.CusBakE = this.txtCusBakE.Text; model.Update(); //写系统日志 ZWL.BLL.ERPRiZhi MyRiZhi = new ZWL.BLL.ERPRiZhi(); MyRiZhi.UserName = ZWL.Common.PublicMethod.GetSessionValue("UserName"); MyRiZhi.DoSomething = "用户修改联系人信息(" + this.txtCustomName.Text + ")"; MyRiZhi.IpStr = System.Web.HttpContext.Current.Request.UserHostAddress.ToString(); MyRiZhi.Add(); ZWL.Common.MessageBox.ShowAndRedirect(this, "联系人信息修改成功!", "MyCustomLinkMan.aspx?CustomName=" + Request.QueryString["CustomName"].ToString()); }
protected void btn_Sub_Click(object sender, EventArgs e) { ZWL.BLL.ERPGongGao Model = new ZWL.BLL.ERPGongGao(); Model.TitleStr = this.TextBox1.Text; Model.UserName = ZWL.Common.PublicMethod.GetSessionValue("UserName"); Model.UserBuMen = this.Send_Person.Value; Model.NoticeType = this.DropDownList1.SelectedValue; Model.ZT = this.ZT.SelectedValue; Model.FuJian = ZWL.Common.PublicMethod.GetSessionValue("WenJianList"); Model.TypeStr = this.TextBox3.Text; Model.ContentStr = this.TxtContent.Text; Model.Num = 0; int id = Model.Add(); DataEntityDataContext context = new DataEntityDataContext(); if (!string.IsNullOrEmpty(this.Send_Person.Value)) { string[] ss = this.Send_Person.Value.Split(','); for (int i = 0; i < ss.Length; i++) { ERPGongGaoYD model = new ERPGongGaoYD(); model.FID = id; model.SSBM = context.ERPUser.SingleOrDefault(p => p.UserName == ZWL.Common.PublicMethod.GetSessionValue("UserName")).Department; model.XM = ss[i]; model.SFYY = "否"; model.BZ1 = ""; model.BZ2 = ""; context.ERPGongGaoYD.InsertOnSubmit(model); context.SubmitChanges(); } } //写系统日志 ZWL.BLL.ERPRiZhi MyRiZhi = new ZWL.BLL.ERPRiZhi(); MyRiZhi.UserName = ZWL.Common.PublicMethod.GetSessionValue("UserName"); MyRiZhi.DoSomething = "用户添加通知公告信息(" + this.TextBox1.Text + ")"; MyRiZhi.IpStr = System.Web.HttpContext.Current.Request.UserHostAddress.ToString(); MyRiZhi.Add(); Response.Write("<script>alert('通知公告信息添加成功!');window.location.href='GongGao.aspx'</script>"); }
/// <summary> /// 登陆系统 /// </summary> /// <param name="MyUserName"></param> /// <param name="MyUserPwd"></param> public void UserLogin(string MyUserName, string MyUserPwd) { DataRow MyDataRow = DbHelperSQL.GetDataRow("select * from ERPUser where UserName='******'"); if (MyDataRow == null) { System.Web.HttpContext.Current.Response.Write("<script language='javascript'>alert('您所输入的用户名不存在!');</script>"); } else { if (MyUserPwd == ZWL.Common.DataValidate.ValidateDataRow_S(MyDataRow, "UserPwd")) { if (ZWL.Common.DataValidate.ValidateDataRow_S(MyDataRow, "IfLogin").Trim() == "是") { System.Web.HttpContext.Current.Session["UserID"] = ZWL.Common.DataValidate.ValidateDataRow_S(MyDataRow, "ID"); System.Web.HttpContext.Current.Session["UserName"] = ZWL.Common.DataValidate.ValidateDataRow_S(MyDataRow, "UserName"); System.Web.HttpContext.Current.Session["JiaoSe"] = ZWL.Common.DataValidate.ValidateDataRow_S(MyDataRow, "JiaoSe"); System.Web.HttpContext.Current.Session["Department"] = ZWL.Common.DataValidate.ValidateDataRow_S(MyDataRow, "Department"); System.Web.HttpContext.Current.Session["TrueName"] = ZWL.Common.DataValidate.ValidateDataRow_S(MyDataRow, "TrueName"); System.Web.HttpContext.Current.Session["ZhiWei"] = ZWL.Common.DataValidate.ValidateDataRow_S(MyDataRow, "ZhiWei"); System.Web.HttpContext.Current.Session["QuanXian"] = ZWL.DBUtility.DbHelperSQL.GetStringList("select QuanXian from ERPJiaoSe where JiaoSeName in(" + "'" + ZWL.Common.DataValidate.ValidateDataRow_S(MyDataRow, "JiaoSe").Replace(",", "','") + "'" + ")"); //写登陆日志 ERPRiZhi MyRiZhi = new ERPRiZhi(); MyRiZhi.UserName = ZWL.Common.PublicMethod.GetSessionValue("UserName"); MyRiZhi.DoSomething = "用户登陆系统"; MyRiZhi.IpStr = System.Web.HttpContext.Current.Request.UserHostAddress.ToString(); MyRiZhi.Add(); //系统跳转 System.Web.HttpContext.Current.Response.Redirect("Main/Main.aspx"); } else { System.Web.HttpContext.Current.Response.Write("<script language='javascript'>alert('该用户暂时不允许登陆系统,请联系管理员!');</script>"); } } else { System.Web.HttpContext.Current.Response.Write("<script language='javascript'>alert('该用户名对应的密码错误!');</script>"); } } }
protected void ImageButton1_Click(object sender, ImageClickEventArgs e) { ZWL.BLL.ERPJiXiao Model = new ZWL.BLL.ERPJiXiao(); Model.JXName = this.txtJXName.Text.ToString(); Model.JianJie = this.txtJianJie.Text.ToString(); Model.UserName = ZWL.Common.PublicMethod.GetSessionValue("UserName"); Model.TimeStr = DateTime.Now; int JXIDStr = Model.Add(); //写入考核详细记录表中!!!!!! //获取动态参数项 DataSet CanShuDT = ZWL.DBUtility.DbHelperSQL.GetDataSet("select ItemName,ID from ERPJiXiaoCanShu order by BackInfo"); //绑定数据到列表中 DataSet UserDT = ZWL.DBUtility.DbHelperSQL.GetDataSet("select UserName from ERPUser order by UserName asc"); //插入数据到数据表 for (int j = 0; j < UserDT.Tables[0].Rows.Count; j++) { for (int K = 0; K < CanShuDT.Tables[0].Rows.Count; K++) { ZWL.BLL.ERPJXDetails MyModel = new ZWL.BLL.ERPJXDetails(); MyModel.JXID = JXIDStr; MyModel.ItemsID = int.Parse(CanShuDT.Tables[0].Rows[K]["ID"].ToString()); MyModel.UserName = UserDT.Tables[0].Rows[j]["UserName"].ToString(); MyModel.NumStr = Request.Form["InP-" + UserDT.Tables[0].Rows[j]["UserName"].ToString() + "-" + CanShuDT.Tables[0].Rows[K]["ID"].ToString()].ToString(); MyModel.Add(); } } //写系统日志 ZWL.BLL.ERPRiZhi MyRiZhi = new ZWL.BLL.ERPRiZhi(); MyRiZhi.UserName = ZWL.Common.PublicMethod.GetSessionValue("UserName"); MyRiZhi.DoSomething = "用户添加绩效考核信息(" + this.txtJXName.Text + ")"; MyRiZhi.IpStr = System.Web.HttpContext.Current.Request.UserHostAddress.ToString(); MyRiZhi.Add(); ZWL.Common.MessageBox.ShowAndRedirect(this, "绩效考核信息添加成功!", "JiXiao.aspx"); }
protected void ImageButton1_Click(object sender, ImageClickEventArgs e) { ZWL.BLL.ERPLanEmail MyModel = new ZWL.BLL.ERPLanEmail(); MyModel.EmailTitle = this.TextBox1.Text; MyModel.EmailContent = this.TxtContent.Text; MyModel.FuJian = ZWL.Common.PublicMethod.GetSessionValue("WenJianList"); MyModel.FromUser = ZWL.Common.PublicMethod.GetSessionValue("UserName"); MyModel.EmailState = "已发"; MyModel.TimeStr = DateTime.Now; MyModel.ToUser = this.TextBox2.Text.Trim(); MyModel.Add(); ZWL.BLL.ERPLanEmailShou MyModelShou = new ZWL.BLL.ERPLanEmailShou(); MyModelShou.EmailTitle = MyModel.EmailTitle; MyModelShou.EmailContent = MyModel.EmailContent; MyModelShou.FuJian = MyModel.FuJian; MyModelShou.FromUser = MyModel.FromUser; MyModelShou.EmailState = "未读"; MyModelShou.TimeStr = MyModel.TimeStr; MyModelShou.ToUser = MyModel.ToUser; string[] ToWhoList = this.TextBox2.Text.Trim().Split(','); for (int i = 0; i < ToWhoList.Length; i++) { if (ToWhoList[i].Trim().Length > 0) { MyModelShou.ShouUser = ToWhoList[i].Trim(); MyModelShou.Add(); } } //写系统日志 ZWL.BLL.ERPRiZhi MyRiZhi = new ZWL.BLL.ERPRiZhi(); MyRiZhi.UserName = ZWL.Common.PublicMethod.GetSessionValue("UserName"); MyRiZhi.DoSomething = "用户添加新邮件(" + this.TextBox1.Text + ")"; MyRiZhi.IpStr = System.Web.HttpContext.Current.Request.UserHostAddress.ToString(); MyRiZhi.Add(); ZWL.Common.MessageBox.ShowAndRedirect(this, "内部邮件发送成功!", "LanEmailShou.aspx"); }
protected void ImageButton1_Click(object sender, ImageClickEventArgs e) { ZWL.BLL.ERPJSDIC Model = new ZWL.BLL.ERPJSDIC(); Model.DicName = this.txtDicName.Text.ToString(); Model.Backinfo = this.txtBackinfo.Text.ToString(); Model.UserName = ZWL.Common.PublicMethod.GetSessionValue("UserName"); Model.TimeStr = DateTime.Now; Model.Add(); //写系统日志 ZWL.BLL.ERPRiZhi MyRiZhi = new ZWL.BLL.ERPRiZhi(); MyRiZhi.UserName = ZWL.Common.PublicMethod.GetSessionValue("UserName"); MyRiZhi.DoSomething = "用户添加签收文件夹信息(" + this.txtDicName.Text + ")"; MyRiZhi.IpStr = System.Web.HttpContext.Current.Request.UserHostAddress.ToString(); MyRiZhi.Add(); ZWL.Common.MessageBox.ShowAndRedirect(this, "签收文件夹信息添加成功!", "JSDIC.aspx"); }
protected void ImageButton1_Click(object sender, EventArgs e) { ZWL.BLL.ERPGongGao Model = new ZWL.BLL.ERPGongGao(); Model.TitleStr = this.TextBox1.Text; Model.UserName = ZWL.Common.PublicMethod.GetSessionValue("UserName"); Model.UserBuMen = ZWL.Common.PublicMethod.GetSessionValue("Department"); Model.FuJian = ZWL.Common.PublicMethod.GetSessionValue("WenJianList"); Model.TypeStr = "单位"; Model.ContentStr = this.TxtContent.Text; Model.Add(); //写系统日志 ZWL.BLL.ERPRiZhi MyRiZhi = new ZWL.BLL.ERPRiZhi(); MyRiZhi.UserName = ZWL.Common.PublicMethod.GetSessionValue("UserName"); MyRiZhi.DoSomething = "用户添加公告通知信息(" + this.TextBox1.Text + ")"; MyRiZhi.IpStr = System.Web.HttpContext.Current.Request.UserHostAddress.ToString(); MyRiZhi.Add(); ZWL.Common.MessageBox.ShowAndRedirect(this, "公告通知信息添加成功!", "GongGao.aspx?Type=%B5%A5%CE%BB"); }
protected void ImageButton1_Click(object sender, EventArgs e) { ZWL.BLL.ERPMoBan Model = new ZWL.BLL.ERPMoBan(); Model.ID = int.Parse(Request.QueryString["ID"].ToString()); Model.TitleStr = this.TextBox1.Text; Model.ContentStr = this.TxtContent.Text; Model.IFShare = this.RadioButtonList1.SelectedItem.Text; Model.TimeStr = DateTime.Now; Model.UserName = ZWL.Common.PublicMethod.GetSessionValue("UserName"); Model.Update(); //写系统日志 ZWL.BLL.ERPRiZhi MyRiZhi = new ZWL.BLL.ERPRiZhi(); MyRiZhi.UserName = ZWL.Common.PublicMethod.GetSessionValue("UserName"); MyRiZhi.DoSomething = "用户修改常用模板信息(" + this.TextBox1.Text + ")"; MyRiZhi.IpStr = System.Web.HttpContext.Current.Request.UserHostAddress.ToString(); MyRiZhi.Add(); ZWL.Common.MessageBox.ShowAndRedirect(this, "常用模板修改成功!", "MyMoBan.aspx"); }
protected void ImageButton1_Click(object sender, ImageClickEventArgs e) { ZWL.BLL.ERPPinShen model = new ZWL.BLL.ERPPinShen(); model.ProjectName = this.txtProjectName.Text; model.ProjectSerils = this.txtProjectSerils.Text; model.PingShenTime = this.txtPingShenTime.Text; model.PingShenJieGuo = this.txtPingShenJieGuo.Text; model.BachInfo = this.txtBachInfo.Text; model.UserName = ZWL.Common.PublicMethod.GetSessionValue("UserName"); model.TimeStr = DateTime.Now; model.Add(); //写系统日志 ZWL.BLL.ERPRiZhi MyRiZhi = new ZWL.BLL.ERPRiZhi(); MyRiZhi.UserName = ZWL.Common.PublicMethod.GetSessionValue("UserName"); MyRiZhi.DoSomething = "用户添加评审信息(" + this.txtProjectName.Text + ")"; MyRiZhi.IpStr = System.Web.HttpContext.Current.Request.UserHostAddress.ToString(); MyRiZhi.Add(); ZWL.Common.MessageBox.ShowAndRedirect(this, "评审信息添加成功!", "PingShen.aspx?ProjectName=" + Request.QueryString["ProjectName"].ToString()); }
protected void btn_Restore_Click(object sender, EventArgs e) { string IDlist = ZWL.Common.PublicMethod.CheckCbx(this.GVData, "CheckSelect", "LabVisible"); if (ZWL.DBUtility.DbHelperSQL.ExecuteSQL("update ERPLanEmail set EmailState='已读' where ID in (" + IDlist + ")") == -1) { Response.Write("<script>alert('恢复选中记录时发生错误!请重新登陆后重试!');</script>"); } else { DataBindToGridview(); //写系统日志 ZWL.BLL.ERPRiZhi MyRiZhi = new ZWL.BLL.ERPRiZhi(); MyRiZhi.UserName = ZWL.Common.PublicMethod.GetSessionValue("UserName"); MyRiZhi.DoSomething = "用户恢复已删除的调度"; MyRiZhi.IpStr = System.Web.HttpContext.Current.Request.UserHostAddress.ToString(); MyRiZhi.Add(); Response.Write("<script>alert('恢复成功!');</script>"); } }
protected void ImageButton5_Click(object sender, ImageClickEventArgs e) { //拒绝审批 string IDlist = ZWL.Common.PublicMethod.CheckCbx(this.GVData, "CheckSelect", "LabVisible"); if (ZWL.DBUtility.DbHelperSQL.ExecuteSQL("update ERPBuyOrder set NowState='审核未通过' where ID in (" + IDlist + ")") == -1) { Response.Write("<script>alert('审批选中记录时发生错误!请重新登陆后重试!');</script>"); } else { DataBindToGridview(); //写系统日志 ZWL.BLL.ERPRiZhi MyRiZhi = new ZWL.BLL.ERPRiZhi(); MyRiZhi.UserName = ZWL.Common.PublicMethod.GetSessionValue("UserName"); MyRiZhi.DoSomething = "用户审核未通过采购订单信息"; MyRiZhi.IpStr = System.Web.HttpContext.Current.Request.UserHostAddress.ToString(); MyRiZhi.Add(); } }
protected void btn_Sub_Click(object sender, EventArgs e) { ZWL.BLL.ERPWorkRiZhi Model = new ZWL.BLL.ERPWorkRiZhi(); Model.ID = int.Parse(Request.QueryString["ID"].ToString()); Model.TitleStr = this.TextBox1.Text; Model.ContentStr = ""; Model.TypeStr = ZWL.Common.PublicMethod.GetSessionValue("Department"); Model.TimeStr = DateTime.Now; Model.UserName = ZWL.Common.PublicMethod.GetSessionValue("UserName"); Model.Update(); //写系统日志 ZWL.BLL.ERPRiZhi MyRiZhi = new ZWL.BLL.ERPRiZhi(); MyRiZhi.UserName = ZWL.Common.PublicMethod.GetSessionValue("UserName"); MyRiZhi.DoSomething = "用户修改分享信息(" + this.TextBox1.Text + ")"; MyRiZhi.IpStr = System.Web.HttpContext.Current.Request.UserHostAddress.ToString(); MyRiZhi.Add(); ZWL.Common.MessageBox.ShowAndRedirect(this, "分享信息修改成功!", "WorkRiZhi.aspx"); }
protected void ImageButton1_Click(object sender, ImageClickEventArgs e) { string CanWriteStr = ""; for (int i = 0; i < ListBox2.Items.Count; i++) { CanWriteStr = CanWriteStr + "|" + ListBox2.Items[i].Value.ToString() + "_" + ListBox2.Items[i].Text.ToString(); } ZWL.DBUtility.DbHelperSQL.ExecuteSQL("update ERPNWorkFlowNode set CanWriteSet='" + CanWriteStr + "' where ID=" + Request.QueryString["ID"].ToString()); //写系统日志 ZWL.BLL.ERPRiZhi MyRiZhi = new ZWL.BLL.ERPRiZhi(); MyRiZhi.UserName = ZWL.Common.PublicMethod.GetSessionValue("UserName"); MyRiZhi.DoSomething = "用户设置可写字段(节点ID:" + Request.QueryString["ID"].ToString() + ")"; MyRiZhi.IpStr = System.Web.HttpContext.Current.Request.UserHostAddress.ToString(); MyRiZhi.Add(); ZWL.Common.MessageBox.ShowAndRedirect(this, "可写字段设置成功!", "NWorkFlowNode.aspx?WorkFlowID=" + Request.QueryString["WorkFlowID"].ToString()); }
protected void ImageButton1_Click(object sender, ImageClickEventArgs e) { ZWL.BLL.ERPKaoQinSetting Model = new ZWL.BLL.ERPKaoQinSetting(); Model.ID = int.Parse(ZWL.DBUtility.DbHelperSQL.GetSHSLInt("select top 1 [ID] FROM ERPKaoQinSetting")); Model.GuiDingTime1 = this.DropDownList1.SelectedItem.Text + ":" + this.DropDownList2.SelectedItem.Text + ":00"; Model.GuiDingTime2 = this.DropDownList3.SelectedItem.Text + ":" + this.DropDownList4.SelectedItem.Text + ":00"; Model.GuiDingTime3 = this.DropDownList5.SelectedItem.Text + ":" + this.DropDownList6.SelectedItem.Text + ":00"; Model.GuiDingTime4 = this.DropDownList7.SelectedItem.Text + ":" + this.DropDownList8.SelectedItem.Text + ":00"; Model.GuiDingTime5 = this.DropDownList9.SelectedItem.Text + ":" + this.DropDownList10.SelectedItem.Text + ":00"; Model.GuiDingTime6 = this.DropDownList11.SelectedItem.Text + ":" + this.DropDownList12.SelectedItem.Text + ":00"; Model.Update(); //写系统日志 ZWL.BLL.ERPRiZhi MyRiZhi = new ZWL.BLL.ERPRiZhi(); MyRiZhi.UserName = ZWL.Common.PublicMethod.GetSessionValue("UserName"); MyRiZhi.DoSomething = "用户修改考勤时间设置"; MyRiZhi.IpStr = System.Web.HttpContext.Current.Request.UserHostAddress.ToString(); MyRiZhi.Add(); ZWL.Common.MessageBox.ShowAndRedirect(this, "考勤时间设置成功!", "KaoQinSetting.aspx"); }
protected void ImageButton3_Click(object sender, ImageClickEventArgs e) { string IDlist = ZWL.Common.PublicMethod.CheckCbx(this.GVData, "CheckSelect", "LabVisible"); if (ZWL.DBUtility.DbHelperSQL.ExecuteSQL("update ERPLanEmailShou set EmailState='删除' where ID in (" + IDlist + ")") == -1) { Response.Write("<script>alert('删除选中记录时发生错误!请重新登陆后重试!');</script>"); } else { DataBindToGridview(); //写系统日志 ZWL.BLL.ERPRiZhi MyRiZhi = new ZWL.BLL.ERPRiZhi(); MyRiZhi.UserName = ZWL.Common.PublicMethod.GetSessionValue("UserName"); MyRiZhi.DoSomething = "用户删除收件箱中的邮件"; MyRiZhi.IpStr = System.Web.HttpContext.Current.Request.UserHostAddress.ToString(); MyRiZhi.Add(); ZWL.Common.MessageBox.Show(this, "已移送至已删邮件箱!"); } }