示例#1
0
        public static void CopyAppHeaderInfo(ref A03_Info_Export p_appDetail, ApplicationHeaderInfo pAppInfo)
        {
            p_appDetail.STT = pAppInfo.STT;
            //p_appDetail.ID = pAppInfo.Id;
            p_appDetail.Appcode        = pAppInfo.Appcode;
            p_appDetail.Master_Name    = pAppInfo.Master_Name;
            p_appDetail.Master_Address = pAppInfo.Master_Address;
            p_appDetail.Master_Phone   = pAppInfo.Master_Phone;
            p_appDetail.Master_Fax     = pAppInfo.Master_Fax;
            p_appDetail.Master_Email   = pAppInfo.Master_Email;

            p_appDetail.Master_Type   = pAppInfo.Master_Type == null ? "" : pAppInfo.Master_Type;
            p_appDetail.Customer_Code = pAppInfo.Customer_Code == null ? "239" : pAppInfo.Customer_Code;

            p_appDetail.Rep_Master_Type    = pAppInfo.Rep_Master_Type;
            p_appDetail.Rep_Master_Name    = pAppInfo.Rep_Master_Name;
            p_appDetail.Rep_Master_Address = pAppInfo.Rep_Master_Address;
            p_appDetail.Rep_Master_Phone   = pAppInfo.Rep_Master_Phone;
            p_appDetail.Rep_Master_Fax     = pAppInfo.Rep_Master_Fax;
            p_appDetail.Rep_Master_Email   = pAppInfo.Rep_Master_Email;
            p_appDetail.Relationship       = pAppInfo.Relationship;
            p_appDetail.Send_Date          = pAppInfo.Send_Date;
            p_appDetail.Status             = pAppInfo.Status;
            p_appDetail.Status_Form        = pAppInfo.Status_Form;
            p_appDetail.Status_Content     = pAppInfo.Status_Content;
            p_appDetail.Remark             = pAppInfo.Remark;
            p_appDetail.AppName            = pAppInfo.AppName;
            p_appDetail.Address            = pAppInfo.Address;
            p_appDetail.DateNo             = pAppInfo.DateNo;
            p_appDetail.Months             = pAppInfo.Months;
            p_appDetail.Years = pAppInfo.Years;
        }
示例#2
0
 public static void CopyAuthorsInfo(ref A03_Info_Export p_appDetail, AuthorsInfo pAppInfo, int p_position)
 {
     if (p_position == 0)
     {
         p_appDetail.Author_Name            = pAppInfo.Author_Name;
         p_appDetail.Author_Address         = pAppInfo.Author_Address;
         p_appDetail.Author_Phone           = pAppInfo.Author_Phone;
         p_appDetail.Author_Fax             = pAppInfo.Author_Fax;
         p_appDetail.Author_Email           = pAppInfo.Author_Email;
         p_appDetail.Author_Country_Display = pAppInfo.Author_Country_Display;
     }
     else if (p_position == 1)
     {
         if (pAppInfo != null)
         {
             p_appDetail.Author_Name_1            = pAppInfo.Author_Name;
             p_appDetail.Author_Address_1         = pAppInfo.Author_Address;
             p_appDetail.Author_Phone_1           = pAppInfo.Author_Phone;
             p_appDetail.Author_Fax_1             = pAppInfo.Author_Fax;
             p_appDetail.Author_Email_1           = pAppInfo.Author_Email;
             p_appDetail.Author_Country_Display_1 = pAppInfo.Author_Country_Display;
         }
         else
         {
             p_appDetail.Author_Name_1            = "";
             p_appDetail.Author_Address_1         = "";
             p_appDetail.Author_Phone_1           = "";
             p_appDetail.Author_Fax_1             = "";
             p_appDetail.Author_Email_1           = "";
             p_appDetail.Author_Country_Display_1 = "";
         }
     }
     else if (p_position == 2)
     {
         if (pAppInfo != null)
         {
             p_appDetail.Author_Name_2            = pAppInfo.Author_Name;
             p_appDetail.Author_Address_2         = pAppInfo.Author_Address;
             p_appDetail.Author_Phone_2           = pAppInfo.Author_Phone;
             p_appDetail.Author_Fax_2             = pAppInfo.Author_Fax;
             p_appDetail.Author_Email_2           = pAppInfo.Author_Email;
             p_appDetail.Author_Country_Display_2 = pAppInfo.Author_Country_Display;
         }
         else
         {
             p_appDetail.Author_Name_2            = "";
             p_appDetail.Author_Address_2         = "";
             p_appDetail.Author_Phone_2           = "";
             p_appDetail.Author_Fax_2             = "";
             p_appDetail.Author_Email_2           = "";
             p_appDetail.Author_Country_Display_2 = "";
         }
     }
 }
示例#3
0
        public static void CopyOther_MasterInfo(ref A03_Info_Export p_appDetail, Other_MasterInfo pAppInfo, int p_position)
        {
            if (p_position == 0)
            {
                if (pAppInfo != null)
                {
                    p_appDetail.Master_Name_1    = pAppInfo.Master_Name;
                    p_appDetail.Master_Address_1 = pAppInfo.Master_Address;
                    p_appDetail.Master_Phone_1   = pAppInfo.Master_Phone;
                    p_appDetail.Master_Fax_1     = pAppInfo.Master_Fax;
                    p_appDetail.Master_Email_1   = pAppInfo.Master_Email;
                    p_appDetail.TacGiaDongThoi_1 = pAppInfo.TacGiaDongThoi;
                    p_appDetail.PhoBan_1         = pAppInfo.PhoBan;
                }
                else
                {
                    p_appDetail.Master_Name_1    = "";
                    p_appDetail.Master_Address_1 = "";
                    p_appDetail.Master_Phone_1   = "";
                    p_appDetail.Master_Fax_1     = "";
                    p_appDetail.Master_Email_1   = "";
                    p_appDetail.TacGiaDongThoi_1 = "";
                    p_appDetail.PhoBan_1         = "";
                }
            }
            else if (p_position == 1)
            {
                if (pAppInfo != null)
                {
                    p_appDetail.Master_Name_2    = pAppInfo.Master_Name;
                    p_appDetail.Master_Address_2 = pAppInfo.Master_Address;
                    p_appDetail.Master_Phone_2   = pAppInfo.Master_Phone;
                    p_appDetail.Master_Fax_2     = pAppInfo.Master_Fax;
                    p_appDetail.Master_Email_2   = pAppInfo.Master_Email;

                    p_appDetail.TacGiaDongThoi_2 = pAppInfo.TacGiaDongThoi;
                    p_appDetail.PhoBan_2         = pAppInfo.PhoBan;
                }
                else
                {
                    p_appDetail.Master_Name_2    = "";
                    p_appDetail.Master_Address_2 = "";
                    p_appDetail.Master_Phone_2   = "";
                    p_appDetail.Master_Fax_2     = "";
                    p_appDetail.Master_Email_2   = "";

                    p_appDetail.TacGiaDongThoi_2 = "";
                    p_appDetail.PhoBan_2         = "";
                }
            }
        }
示例#4
0
 public static void CopyA03_Info(ref A03_Info_Export p_appDetail, A03_Info p_A03_Info)
 {
     p_appDetail.A03_Id               = p_A03_Info.A03_Id;
     p_appDetail.Language_Code        = p_A03_Info.Language_Code;
     p_appDetail.Industry_Design_Name = p_A03_Info.Industry_Design_Name;
     p_appDetail.Refappno             = p_A03_Info.Refappno;
     p_appDetail.App_Sentdate         = p_A03_Info.App_Sentdate;
     p_appDetail.Kqtd_Type            = p_A03_Info.Kqtd_Type;
     p_appDetail.Kqtd_Value           = p_A03_Info.Kqtd_Value;
     p_appDetail.Phanloai_Type        = p_A03_Info.Phanloai_Type;
     p_appDetail.USED_SPECIAL         = p_A03_Info.USED_SPECIAL;
     p_appDetail.Class_Content        = p_A03_Info.Class_Content;
     p_appDetail.SoHinhPhatSinh       = p_A03_Info.SoHinhPhatSinh;
     p_appDetail.SO_PA = p_A03_Info.SO_PA;
     p_appDetail.SO_HA = p_A03_Info.SO_HA;
 }
示例#5
0
 public static void CopyUuTienInfo(ref A03_Info_Export p_appDetail, UTienInfo pAppInfo)
 {
     if (pAppInfo != null)
     {
         p_appDetail.UT_SoDon           = pAppInfo.UT_SoDon;
         p_appDetail.UT_NgayNopDon      = pAppInfo.UT_NgayNopDon;
         p_appDetail.UT_QuocGia_Display = pAppInfo.UT_QuocGia_Display;
         p_appDetail.UT_Type            = pAppInfo.UT_Type;
         p_appDetail.UT_ThoaThuanKhac   = pAppInfo.UT_ThoaThuanKhac;
     }
     else
     {
         p_appDetail.UT_SoDon           = "";
         p_appDetail.UT_NgayNopDon      = DateTime.MinValue;
         p_appDetail.UT_QuocGia_Display = "";
         p_appDetail.UT_Type            = "";
         p_appDetail.UT_ThoaThuanKhac   = "";
     }
 }