tycrm/CGGL/CaiGou/FuKuanJH_add.aspx.cs
(完整代码) 1KBusing System;
using System.Data;
using System.Web;
using System.Web.UI;
using System.Data.SqlClient;
using qpsmartweb.Public;
using System.Collections;
namespace tycrm.CGGL.CaiGou
{
public partial class FuKuanJH_add : System.Web.UI.Page
{
Db List = new Db();
BindDrowDownList list = new BindDrowDownList();
protected void Page_Load(object sender, EventArgs e)
{
if (this.Session["username"] == null)
{
this.Response.Write("<script language=javascript>alert('登陆超时!');window.parent.location = '/main_d.aspx'</script>");
return;
}
if (!Page.IsPostBack)
{
CgName.Text = List.TypeCodecrm("Zhuti", "qp_crm_CaiGou", Request.QueryString["id"].ToString());
BindAttribute();
}
}
public void BindAttribute()
{
CgName.Attributes.Add("readonly", "readonly");
HuikuanRq.Attributes.Add("readonly", "readonly");
Button1.Attributes["onclick"] = "javascript:return chknull();";
}
protected void Button1_Click(object sender, EventArgs e)
{
string sql_insert = "insert into qp_crm_FuKuanJH (Username,Realname,NowTimes,CgId,HuikuanRq,Qici,Jine,WbBeizhu,Huikuan,Beizhu) values ('" + Session["Username"] + "','" + Session["Realname"] + "','" + System.DateTime.Now.ToShortDateString() + "','" + Request.QueryString["id"].ToString() + "','" + List.GetFormatStr(HuikuanRq.Text) + "','" + Qici.SelectedValue + "','" + List.GetFormatStr(Jine.Text) + "','" + List.GetFormatStr(WbBeizhu.Text) + "','" + Huikuan.SelectedValue + "','" + List.GetFormatStr(Beizhu.Text) + "')";
List.ExeSql(sql_insert);
List.InsertLog("新增回款计划", "采购订单");
this.Response.Write("<script language=javascript>alert('提交成功!');window.close()</script>");
}
}
}
24 小时内免费解锁 3 个项目,之后 1 积分/个。 规则说明
AI 解读
登录后可用,每次 10 积分,解读结果公开显示在下面。
还没有人解读过这个文件。
