private void SaveData() { ICustomerAssign cust = new CustomerAssignEntity(); BuildEntity(cust); CommonBLL commonBll = new CommonBLL(); commonBll.SaveAssignedCustomer(cust, _userId); //ScriptManager.RegisterStartupScript(this, typeof(Page), "alert", "<script>javascript:void alert('" + ResourceManager.GetStringWithoutName("ERR00056") + "');</script>", false); }
public static ICustomerAssign GetAssignedCustomer(int custAssignID) { string strExecution = "[common].[uspGetAssignedCustomerList]"; ICustomerAssign cust = null; using (DbQuery oDq = new DbQuery(strExecution)) { oDq.AddIntegerParam("@CustAssignID", custAssignID); DataTableReader reader = oDq.GetTableReader(); while (reader.Read()) { cust = new CustomerAssignEntity(reader); } reader.Close(); } return(cust); }
public static List <ICustomerAssign> GetAssignedCustomer() { string strExecution = "[common].[uspGetAssignedCustomerList]"; List <ICustomerAssign> lstCust = new List <ICustomerAssign>(); using (DbQuery oDq = new DbQuery(strExecution)) { DataTableReader reader = oDq.GetTableReader(); while (reader.Read()) { ICustomerAssign cust = new CustomerAssignEntity(reader); lstCust.Add(cust); } reader.Close(); } return(lstCust); }