public static void CopyAppHeaderInfo(ref A02_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; }
public static void CopyAuthorsInfo(ref A02_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 = ""; } } }
public static void CopyOther_MasterInfo(ref A02_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 = ""; } } }
public static void CopyA02_Info(ref A02_Info_Export p_appDetail, A02_Info p_A02_Info) { p_appDetail.A02_Id = p_A02_Info.A02_Id; p_appDetail.Language_Code = p_A02_Info.Language_Code; p_appDetail.TenThietKe = p_A02_Info.TenThietKe; p_appDetail.NgayTaoThietKe = p_A02_Info.NgayTaoThietKe; p_appDetail.KhaiThactm = p_A02_Info.KhaiThactm; p_appDetail.KhaiThactm_TaiNuoc = p_A02_Info.KhaiThactm_TaiNuoc; p_appDetail.KhaiThactm_Ngay = p_A02_Info.KhaiThactm_Ngay; p_appDetail.ChucNang = p_A02_Info.ChucNang; p_appDetail.ChucNang_Other = p_A02_Info.ChucNang_Other; p_appDetail.CauTruc = p_A02_Info.CauTruc; p_appDetail.CauTruc_OTHER = p_A02_Info.CauTruc_OTHER; p_appDetail.CongNghe = p_A02_Info.CongNghe; p_appDetail.CongNghe_OTHER = p_A02_Info.CongNghe_OTHER; p_appDetail.MoTaTomTat = p_A02_Info.MoTaTomTat; p_appDetail.SoAnh = p_A02_Info.SoAnh; }