Ejemplo n.º 1
0
        public App_Detail_C04_Info GetByID(decimal p_app_header_id, string p_language_code,
                                           ref ApplicationHeaderInfo applicationHeaderInfo,
                                           ref List <AppDocumentInfo> appDocumentInfos, ref List <AppFeeFixInfo> appFeeFixInfos,
                                           ref List <AppDocumentOthersInfo> _LstDocumentOthersInfo)
        {
            try
            {
                var                 objData        = new App_Detail_C04_DA();
                DataSet             dataSet        = objData.GetByID(p_app_header_id, p_language_code);
                App_Detail_C04_Info app_Detail_C04 = CBO <App_Detail_C04_Info> .FillObjectFromDataSet(dataSet);

                if (dataSet != null && dataSet.Tables.Count == 5)
                {
                    applicationHeaderInfo = CBO <ApplicationHeaderInfo> .FillObjectFromDataTable(dataSet.Tables[1]);

                    appDocumentInfos = CBO <AppDocumentInfo> .FillCollectionFromDataTable(dataSet.Tables[2]);

                    appFeeFixInfos = CBO <AppFeeFixInfo> .FillCollectionFromDataTable(dataSet.Tables[3]);

                    _LstDocumentOthersInfo = CBO <AppDocumentOthersInfo> .FillCollectionFromDataTable(dataSet.Tables[4]);
                }

                return(app_Detail_C04);
            }
            catch (Exception ex)
            {
                Logger.LogException(ex);
                return(new App_Detail_C04_Info());
            }
        }
Ejemplo n.º 2
0
 public int Update(App_Detail_C04_Info pInfo)
 {
     try
     {
         App_Detail_C04_DA objData = new App_Detail_C04_DA();
         return(objData.UpDate(pInfo));
     }
     catch (Exception ex)
     {
         Logger.LogException(ex);
         return(ErrorCode.Error);
     }
 }
Ejemplo n.º 3
0
 public int Deleted(decimal p_app_header_id, string pAppCode, string pLanguage)
 {
     try
     {
         App_Detail_C04_DA objData = new App_Detail_C04_DA();
         return(objData.Deleted(p_app_header_id, pAppCode, pLanguage));
     }
     catch (Exception ex)
     {
         Logger.LogException(ex);
         return(ErrorCode.Error);
     }
 }
Ejemplo n.º 4
0
 public decimal Insert(App_Detail_C04_Info pInfo)
 {
     try
     {
         App_Detail_C04_DA objData = new App_Detail_C04_DA();
         return(objData.Insert(pInfo));
     }
     catch (Exception ex)
     {
         Logger.LogException(ex);
         return(ErrorCode.Error);
     }
 }