Exemplo n.º 1
0
 public static ClsLeadDesignerBusiness GetFields()
 {
     try
     {
         ClsLeadDesignerBusiness obj = new ClsLeadDesignerBusiness();
         DataSet ds = new LeadFormatDesigner.DataAccess.ClsLeadDesignerDataService().LeadDesignerFields_Get();
         if (!obj.MapData(ds))
         {
             obj = null;
         }
         return(obj);
     }
     catch (Exception ex)
     {
         VMuktiHelper.ExceptionHandler(ex, "GetFields()", "ClsLeadDesignerBusiness.cs");
         return(null);
     }
 }
Exemplo n.º 2
0
 public static ClsLeadFormatBusiness LeadFields_GetByID(Int64 ID)
 {
     try
     {
         Formatflag = 1;
         ClsLeadFormatBusiness obj = new ClsLeadFormatBusiness();
         DataSet ds = new LeadFormatDesigner.DataAccess.ClsLeadDesignerDataService().LeadFields_GetByID(ID);
         if (!obj.MapData(ds))
         {
             obj = null;
         }
         return(obj);
     }
     catch (Exception ex)
     {
         VMuktiHelper.ExceptionHandler(ex, "LeadFields_GetByID()", "ClsLeadFormatBusiness.cs");
         return(null);
     }
 }
 public int Save(IDbTransaction txn)
 {
     try
     {
         int rowins = 0;
         LeadFormatDesigner.DataAccess.ClsLeadDesignerDataService LeadDesig = new ClsLeadDesignerDataService(txn);
         rowins = LeadDesig.LeadDesigner_Save(_ID, _FieldName, _FieldType, _FieldSize, _IsRequired); 
         return rowins;
     }
     catch (Exception ex)
     {
         VMuktiHelper.ExceptionHandler(ex, "Save()", "ClsLeadDesignerBusiness.cs");
         return 0;
     }
 }
        public static ClsLeadDesignerBusiness GetFields()
        {
            try
            {
                ClsLeadDesignerBusiness obj = new ClsLeadDesignerBusiness();
                DataSet ds = new LeadFormatDesigner.DataAccess.ClsLeadDesignerDataService().LeadDesignerFields_Get();
                if (!obj.MapData(ds)) obj = null;
                return obj;
            }
            catch (Exception ex)
            {
                VMuktiHelper.ExceptionHandler(ex, "GetFields()", "ClsLeadDesignerBusiness.cs");
                return null;
            }

        }
 public int LeadFormatDesignerSave(IDbTransaction txn)
 {
     try
     {
         int rowins = 0;
         LeadFormatDesigner.DataAccess.ClsLeadDesignerDataService LeadDesig = new ClsLeadDesignerDataService(txn);
         rowins = LeadDesig.LeadFormatDesigner_Save(_LeadFieldsID, _LeadFormatID, _FieldID, _DefaultValue, _IsRequired, _StartPosition, _Length, _Delimiters);
         return rowins;
     }
     catch (Exception ex)
     {
         VMuktiHelper.ExceptionHandler(ex, "LeadFormatDesignerSave()", "ClsLeadFormatBusiness.cs");
         return 0;
     }
 }
 public int LeadFormatSave(IDbTransaction txn)
 {
     try
     {
         int rowins = 0;
         LeadFormatDesigner.DataAccess.ClsLeadDesignerDataService LeadDesig = new ClsLeadDesignerDataService(txn);
         rowins = LeadDesig.LeadFormat_Save(_ID, _LeadFormatName, _FormatType, _Description);
         return rowins;
     }
     catch (Exception ex)
     {
         VMuktiHelper.ExceptionHandler(ex, "LeadFormatSave()", "ClsLeadFormatBusiness.cs");
         return 0;
     }
 }
        public static ClsLeadFormatBusiness LeadFields_GetByID(Int64 ID)
        {
            try
            {
                Formatflag = 1;
                ClsLeadFormatBusiness obj = new ClsLeadFormatBusiness();
                DataSet ds = new LeadFormatDesigner.DataAccess.ClsLeadDesignerDataService().LeadFields_GetByID(ID);
                if (!obj.MapData(ds)) obj = null;
                return obj;
            }
            catch (Exception ex)
            {
                VMuktiHelper.ExceptionHandler(ex, "LeadFields_GetByID()", "ClsLeadFormatBusiness.cs");
                return null;
            }

        }