当前位置: 首页>>代码示例>>C#>>正文


C# BaseDal.GetAutoCode方法代码示例

本文整理汇总了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();
        }
    }
开发者ID:qq5013,项目名称:SenseDigital,代码行数:35,代码来源:ProductionEdit.aspx.cs

示例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));
 }
开发者ID:qq5013,项目名称:SenseDigital,代码行数:5,代码来源:BaseService.cs

示例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();
        }
    }
开发者ID:qq5013,项目名称:SenseDigital,代码行数:47,代码来源:OrderEdit.aspx.cs


注:本文中的Js.BLL.BaseDal.GetAutoCode方法示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。