Exemple #1
0
        public static void CopyAppHeaderInfo(ref A05_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 CopyA05_Info(ref A05_Info_Export p_appDetail, A05_Info p_A05_Info)
 {
     p_appDetail.A05_Id           = p_A05_Info.A05_Id;
     p_appDetail.Language_Code    = p_A05_Info.Language_Code;
     p_appDetail.IMG_URL          = p_A05_Info.IMG_URL;
     p_appDetail.TRANGTHAIDANGKY  = p_A05_Info.TRANGTHAIDANGKY;
     p_appDetail.SODANGKY         = p_A05_Info.SODANGKY;
     p_appDetail.NUOCDANGKY       = p_A05_Info.NUOCDANGKY;
     p_appDetail.TENNUOCDANGKY    = p_A05_Info.TENNUOCDANGKY;
     p_appDetail.NGAYDANGKY       = p_A05_Info.NGAYDANGKY;
     p_appDetail.TCQLDL_TEN       = p_A05_Info.TCQLDL_TEN;
     p_appDetail.TCQLDL_DIACHI    = p_A05_Info.TCQLDL_DIACHI;
     p_appDetail.TCQLDL_DIENTHOAI = p_A05_Info.TCQLDL_DIENTHOAI;
     p_appDetail.TCQLDL_FAX       = p_A05_Info.TCQLDL_FAX;
     p_appDetail.TCQLDL_EMAIL     = p_A05_Info.TCQLDL_EMAIL;
     p_appDetail.SANPHAM_TEN      = p_A05_Info.SANPHAM_TEN;
     p_appDetail.SANPHAM_TOMTAT   = p_A05_Info.SANPHAM_TOMTAT;
 }
Exemple #3
0
 public static void CopyOther_MasterInfo(ref A05_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   = "";
             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;
         }
         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   = "";
         }
     }
 }