Exemple #1
0
 public int Deleted(decimal p_app_header_id, string pAppCode, string pLanguage)
 {
     try
     {
         Pattent_Lao_DA _obj_da = new Pattent_Lao_DA();
         return(_obj_da.Deleted(p_app_header_id, pAppCode, pLanguage));
     }
     catch (Exception ex)
     {
         Logger.LogException(ex);
         return(ErrorCode.Error);
     }
 }
Exemple #2
0
 public decimal UpDate(Pattent_Lao_Info pInfo)
 {
     try
     {
         Pattent_Lao_DA _obj_da = new Pattent_Lao_DA();
         return(_obj_da.UpDate(pInfo));
     }
     catch (Exception ex)
     {
         Logger.LogException(ex);
         return(ErrorCode.Error);
     }
 }
Exemple #3
0
        public Pattent_Lao_Info GetByID(decimal p_app_header_id, string p_language_code,
                                        ref ApplicationHeaderInfo applicationHeaderInfo,
                                        ref List <AppDocumentInfo> appDocumentInfos, ref List <AppFeeFixInfo> appFeeFixInfos,
                                        ref List <Inventor_Info> pInventors, ref List <Other_MasterInfo> pOther_MasterInfo,
                                        ref List <AppClassDetailInfo> appClassDetailInfos, ref List <AppDocumentOthersInfo> pAppDocOtherInfo,
                                        ref List <UTienInfo> pUTienInfo, ref List <AppDocumentOthersInfo> pLstImagePublic)
        {
            try
            {
                Pattent_Lao_DA   _obj_da   = new Pattent_Lao_DA();
                DataSet          dataSet   = _obj_da.GetByID(p_app_header_id, p_language_code);
                Pattent_Lao_Info _A01_Info = CBO <Pattent_Lao_Info> .FillObjectFromDataSet(dataSet);

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

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

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

                    pOther_MasterInfo = CBO <Other_MasterInfo> .FillCollectionFromDataTable(dataSet.Tables[4]);

                    pInventors = CBO <Inventor_Info> .FillCollectionFromDataTable(dataSet.Tables[5]);

                    appClassDetailInfos = CBO <AppClassDetailInfo> .FillCollectionFromDataTable(dataSet.Tables[6]);

                    pAppDocOtherInfo = CBO <AppDocumentOthersInfo> .FillCollectionFromDataTable(dataSet.Tables[7]);

                    pUTienInfo = CBO <UTienInfo> .FillCollectionFromDataTable(dataSet.Tables[8]);

                    pLstImagePublic = CBO <AppDocumentOthersInfo> .FillCollectionFromDataTable(dataSet.Tables[9]);
                }

                return(_A01_Info);
            }
            catch (Exception ex)
            {
                Logger.LogException(ex);
                return(new Pattent_Lao_Info());
            }
        }