예제 #1
0
        public static void CopyAppHeaderInfo(ref C08_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;
        }
예제 #2
0
 public static void CopyC08_Info(ref C08_Info_Export p_appDetail, C08_Info p_C08_Info)
 {
     p_appDetail.C08_Id            = p_C08_Info.C08_Id;
     p_appDetail.Language_Code     = p_C08_Info.Language_Code;
     p_appDetail.SO_DON_DK_QTNH    = p_C08_Info.SO_DON_DK_QTNH;
     p_appDetail.SO_DK_QTNH        = p_C08_Info.SO_DK_QTNH;
     p_appDetail.NGAYNOPDON_DKQTNH = p_C08_Info.NGAYNOPDON_DKQTNH;
     p_appDetail.LOAI_DK           = p_C08_Info.LOAI_DK;
     p_appDetail.LOAIDK_VALUE      = p_C08_Info.LOAIDK_VALUE;
 }
예제 #3
0
 public static void CopyOther_MasterInfo(ref C08_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   = "";
         }
     }
 }