本文整理汇总了C#中Js.BLL.BaseDal.GetAutoCode方法的典型用法代码示例。如果您正苦于以下问题:C# BaseDal.GetAutoCode方法的具体用法?C# BaseDal.GetAutoCode怎么用?C# BaseDal.GetAutoCode使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类Js.BLL.BaseDal
的用法示例。
在下文中一共展示了BaseDal.GetAutoCode方法的3个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C#代码示例。
示例1: Page_Load
protected void Page_Load(object sender, EventArgs e)
{
ID = Request.QueryString["BillID"] + "";
FormID = Request.QueryString["FormID"] + "";
if (!IsPostBack)
{
ViewState["StrWhere"] = string.Format(" BillID='{0}'", ID);
Js.BLL.BaseDal dal = new Js.BLL.BaseDal(FormID, cnKey);
BindEdll();
if (ID != "")
{
DataTable dt = dal.GetViewRecord(ViewState["StrWhere"].ToString());
BindData(dt);
this.txtBillID.ReadOnly = true;
this.txtBillID.CssClass = "TextRead";
this.txtStyleID.CssClass = "TextRead";
this.txtProducePages.CssClass = "TextRead";
this.txtStdPages.CssClass = "TextRead";
this.btnImageQuery.Enabled = true;
this.btnStyleQuery.Enabled = true;
}
else
{
this.txtBillID.Text = dal.GetAutoCode(DateTime.Now);
this.txtBillDate.DateValue = DateTime.Now;
this.txtLastModifyUserName.Text = Session["User"].ToString();
this.txtLastModifyDate.Text = ToYMDHM(DateTime.Now);
this.txtCreateUserName.Text = Session["User"].ToString();
this.txtCreateDate.Text = ToYMDHM(DateTime.Now);
this.ddlBillState.SelectedIndex = 1;
}
BindOther();
}
}
示例2: autoCode
public string autoCode(string FormID, string cnKey, string strdate)
{
Js.BLL.BaseDal dal = new Js.BLL.BaseDal(FormID, cnKey);
return dal.GetAutoCode(DateTime.Parse(strdate));
}
示例3: Page_Load
protected void Page_Load(object sender, EventArgs e)
{
ID = Request.QueryString["BillID"] + "";
FormID = Request.QueryString["FormID"] + "";
if (!IsPostBack)
{
//後台ddl綁定
//DataTable dt1 = new DataTable();
//DataColumn dc = new DataColumn("id", typeof(string));
//dt1.Columns.Add(dc);
//DataRow dr;
//dr = dt1.NewRow();
//dr[0] = "";
//dt1.Rows.Add(dr);
//dr = dt1.NewRow();
//dr[0] = "1";
//dt1.Rows.Add(dr);
//dr = dt1.NewRow();
//dr[0] = "2";
//dt1.Rows.Add(dr);
//txtDeliverCountry.DataSource = dt1;
//txtDeliverCountry.Text = "2";
ViewState["StrWhere"] = string.Format(" BillID='{0}'", ID);
Js.BLL.BaseDal dal = new Js.BLL.BaseDal(FormID, cnKey);
if (ID != "")
{
DataTable dt = dal.GetViewRecord(ViewState["StrWhere"].ToString());
BindData(dt);
this.txtBillID.ReadOnly = true;
this.txtBillID.CssClass = "TextRead";
}
else
{
this.txtBillID.Text = dal.GetAutoCode(DateTime.Now);
this.txtBillDate.DateValue = DateTime.Now;
this.txtLastModifyUserName.Text = Session["User"].ToString();
this.txtLastModifyDate.Text = ToYMDHM(DateTime.Now);
this.txtCreateUserName.Text = Session["User"].ToString();
this.txtCreateDate.Text = ToYMDHM(DateTime.Now);
}
BindEdll();
BindOther();
}
}