Exemple #1
0
        public static void CopyAppHeaderInfo(ref C07_Info_Export p_appDetail, ApplicationHeaderInfo pAppInfo)
        {
            p_appDetail.STT            = pAppInfo.STT;
            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;
        }
Exemple #2
0
 public static void CopyC07_Info(ref C07_Info_Export p_appDetail, C07_Info p_C07_Info)
 {
     p_appDetail.C07_Id             = p_C07_Info.C07_Id;
     p_appDetail.Language_Code      = p_C07_Info.Language_Code;
     p_appDetail.LOGOURL            = p_C07_Info.LOGOURL;
     p_appDetail.SODK_QUOCTE        = p_C07_Info.SODK_QUOCTE;
     p_appDetail.NGAY_DK_QUOCTE     = p_C07_Info.NGAY_DK_QUOCTE;
     p_appDetail.NGAY_UT_DKQT       = p_C07_Info.NGAY_UT_DKQT;
     p_appDetail.CHUNH_TEN          = p_C07_Info.CHUNH_TEN;
     p_appDetail.CHUNH_DIACHI       = p_C07_Info.CHUNH_DIACHI;
     p_appDetail.YC_DK_NH_CHUYENDOI = p_C07_Info.YC_DK_NH_CHUYENDOI;
 }
Exemple #3
0
 public static void CopyOther_MasterInfo(ref C07_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;
         }
         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   = "";
         }
     }
     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;
         }
         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   = "";
         }
     }
 }