Exemplo n.º 1
0
 DataTable GetDetail()
 {
     RDFNew.Module.Admin.Pur.Pur_PoD obj = new RDFNew.Module.Admin.Pur.Pur_PoD();
     DataTable dt = obj.GetDataByParent(B_Keyword)[1] as DataTable;
     if (dt.Rows.Count == 0)
         dt.Rows.Add(dt.NewRow());
     return dt;
 }
Exemplo n.º 2
0
 protected override void LoadDetail()
 {
     DataTable dt;
     dt = App_Com.Helper.GetSession(B_DetailSessionKey, false) as DataTable;
     if (dt == null)
     {
         RDFNew.Module.Admin.Pur.Pur_PoD da = new RDFNew.Module.Admin.Pur.Pur_PoD();
         dt = da.GetDataByParent(B_Keyword)[1] as DataTable;
         DataColumn dc;
         dc = new DataColumn("Amt", typeof(decimal), "Qty*Price"); dt.Columns.Add(dc);
         App_Com.Helper.SetSession(B_DetailSessionKey, dt);
     }
     OutputSummaryData(dt);
     this.Grid1.DataSource = dt;
     this.Grid1.DataBind();
 }