public void GetCreamDetails(RMRecieve R) { bpacked = new BMilkPackedData(); DataSet DS = new DataSet(); DS = bpacked.GetPackedDetails(R); if (!Comman.Comman.IsDataSetEmpty(DS)) { rpPackedDataList.DataSource = DS; rpPackedDataList.DataBind(); } else if (DS.Tables[0].Rows.Count == 0) { rpPackedDataList.DataSource = DS; rpPackedDataList.DataBind(); } }
public void GetCreamDetails(string dates) { bpacked = new BMilkPackedData(); DataSet DS = new DataSet(); DS = bpacked.GetPackedDetails(dates); if (!Comman.Comman.IsDataSetEmpty(DS)) { rpPackedDataList.DataSource = DS; rpPackedDataList.DataBind(); } else { DS.Clear(); rpPackedDataList.DataSource = DS; rpPackedDataList.DataBind(); } }