public static DataTable SearchDocument(string searchtext) { DSupplier Obj = new DSupplier(); Obj.SearchText = searchtext; return(Obj.SearchDocument(Obj)); }
public static DataTable SearchName(string searchtext) { DSupplier Obj = new DSupplier(); Obj.SearchText = searchtext; return(Obj.ShowName(Obj)); }
public static string Delete(int id) { DSupplier Obj = new DSupplier(); Obj.Id = id; return(Obj.Delete(Obj)); }
/// <summary> /// Code to fetch suppliers while merging new article with existing proposal /// </summary> /// <param name="ObjESupplier"></param> /// <returns></returns> public ESupplier GetSuppliersForProposalMerge(ESupplier ObjESupplier) { try { if (ObjDSupplier == null) { ObjDSupplier = new DSupplier(); } ObjDSupplier.GetSuppliersForProposalMerge(ObjESupplier); } catch (Exception ex) { throw ex; } return(ObjESupplier); }
/// <summary> /// Code fetch positions from database for not saved supplier propsoal by passing ProjectID, LVSection, Articles as imput parameters /// </summary> /// <param name="ObjESupplier"></param> /// <returns></returns> public ESupplier GetPositionsforsupplierProposal(ESupplier ObjESupplier) { try { if (ObjDSupplier == null) { ObjDSupplier = new DSupplier(); } ObjDSupplier.GetPositionsforsupplierProposal(ObjESupplier); } catch (Exception ex) { throw ex; } return(ObjESupplier); }
/// <summary> /// Code to Update proposal date to supplier proposal after sending to Supplier /// </summary> /// <param name="ObjESupplier"></param> /// <returns></returns> public ESupplier UpdateProposalDate(ESupplier ObjESupplier) { try { if (ObjDSupplier == null) { ObjDSupplier = new DSupplier(); } ObjESupplier = ObjDSupplier.UpdateProposalDate(ObjESupplier); } catch (Exception ex) { throw; } return(ObjESupplier); }
/// <summary> /// Code to Delete Supplier and article mapping /// </summary> /// <param name="ObjESupplier"></param> /// <returns></returns> public ESupplier DeleteSupplierArticleMap(ESupplier ObjESupplier) { try { if (ObjDSupplier == null) { ObjDSupplier = new DSupplier(); } ObjESupplier = ObjDSupplier.DeleteSupplierArticleMap(ObjESupplier); } catch (Exception ex) { throw; } return(ObjESupplier); }
public static string Insert(string company, string businessDepart, string documentType, string document_Number, string address, string phone, string email, string url) { DSupplier Obj = new DSupplier(); Obj.Company = company; Obj.Business_Department = businessDepart; Obj.Document_Type = documentType; Obj.Document_Number = document_Number; Obj.Address = address; Obj.Phone = phone; Obj.Email = email; Obj.Url = url; return(Obj.Insert(Obj)); }
/// <summary> /// Code to validate datanorm before importing into database /// </summary> /// <param name="SupplierID"></param> /// <param name="ValidityDate"></param> /// <param name="dt"></param> /// <returns></returns> public DataSet ValidateDataNorm(object SupplierID, object ValidityDate, DataTable dt) { DataSet dtreturn = null; try { if (ObjDSupplier == null) { ObjDSupplier = new DSupplier(); } dtreturn = ObjDSupplier.ValidateDataNorm(SupplierID, ValidityDate, dt); } catch (Exception ex) { throw ex; } return(dtreturn); }