Пример #1
0
        public static DataTable SearchDocument(string searchtext)
        {
            DSupplier Obj = new DSupplier();

            Obj.SearchText = searchtext;

            return(Obj.SearchDocument(Obj));
        }
Пример #2
0
        public static DataTable SearchName(string searchtext)
        {
            DSupplier Obj = new DSupplier();

            Obj.SearchText = searchtext;

            return(Obj.ShowName(Obj));
        }
Пример #3
0
        public static string Delete(int id)
        {
            DSupplier Obj = new DSupplier();

            Obj.Id = id;


            return(Obj.Delete(Obj));
        }
Пример #4
0
 /// <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);
 }
Пример #5
0
 /// <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);
 }
Пример #6
0
 /// <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);
 }
Пример #7
0
 /// <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);
 }
Пример #8
0
        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));
        }
Пример #9
0
        /// <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);
        }