Exemplo n.º 1
0
        public static void CopyOther_MasterInfo(ref A01_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         = "";
                }
            }
        }
Exemplo n.º 2
0
 public static void CopyOther_MasterInfo(ref Pattent_Lao_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   = "";
         }
     }
 }