示例#1
0
    protected void grid_InitNewRow(object sender, DevExpress.Web.Data.ASPxDataInitNewRowEventArgs e)
    {
        e.NewValues["SCHD_FREQ"]  = "天";
        e.NewValues["TRIG_GROUP"] = "EsbWS";
        e.NewValues["START_TIME"] = DateTime.Now.ToString("yyyy-MM-dd HH:mm:ss");
        e.NewValues["END_TIME"]   = DateTime.MaxValue;

        if (cbProvider.SelectedItem != null)
        {
            e.NewValues["SCHD_HOST"] = cbProvider.SelectedItem.Value;
        }
    }
示例#2
0
        protected void grid_InitNewRow(object sender, DevExpress.Web.Data.ASPxDataInitNewRowEventArgs e)
        {
            DataClassesDataContext db = new DataClassesDataContext();
            int lineno = 1;
            var line   = db.OrderDtls.Max(x => x.OrderLine);

            if (line != null)
            {
                lineno = Convert.ToInt32(line);
            }
            e.NewValues["OrderLine"] = lineno;
        }
 protected void grid_InitNewRow(object sender, DevExpress.Web.Data.ASPxDataInitNewRowEventArgs e)
 {
     e.NewValues["CreateBy"]   = hdUserID.Value;
     e.NewValues["CreateDate"] = DateTime.Now;
 }
 protected void grid_InitNewRow(object sender, DevExpress.Web.Data.ASPxDataInitNewRowEventArgs e)
 {
 }