private void MapDM_Don_Vi_Tinh(DataRow p_row, CDM_Don_Vi_Tinh p_objDes) { DataTable p_dt = p_row.Table; if (p_dt.Columns.Contains("Auto_ID")) { p_objDes.Auto_ID = CUtility.Convert_To_Int32(p_row["Auto_ID"]); } if (p_dt.Columns.Contains("Ma_Don_Vi_Tinh")) { p_objDes.Ma_Don_Vi_Tinh = CUtility.Convert_To_String(p_row["Ma_Don_Vi_Tinh"]); } if (p_dt.Columns.Contains("Ten_Don_Vi_Tinh")) { p_objDes.Ten_Don_Vi_Tinh = CUtility.Convert_To_String(p_row["Ten_Don_Vi_Tinh"]); } if (p_dt.Columns.Contains("Ghi_Chu")) { p_objDes.Ghi_Chu = CUtility.Convert_To_String(p_row["Ghi_Chu"]); } if (p_dt.Columns.Contains("Created")) { p_objDes.Created = CUtility.Convert_To_DateTime(p_row["Created"]); } if (p_dt.Columns.Contains("Created_By")) { p_objDes.Created_By = CUtility.Convert_To_String(p_row["Created_By"]); } if (p_dt.Columns.Contains("Last_Updated")) { p_objDes.Last_Updated = CUtility.Convert_To_DateTime(p_row["Last_Updated"]); } if (p_dt.Columns.Contains("Last_Updated_By")) { p_objDes.Last_Updated_By = CUtility.Convert_To_String(p_row["Last_Updated_By"]); } if (p_dt.Columns.Contains("Deleted")) { p_objDes.Deleted = CUtility.Convert_To_Bool(p_row["Deleted"]); } }
private void MapDM_Ky(DataRow p_row, CDM_Ky p_objDes) { DataTable p_dt = p_row.Table; if (p_dt.Columns.Contains("Auto_ID")) { p_objDes.Auto_ID = CUtility.Convert_To_Int32(p_row["Auto_ID"]); } if (p_dt.Columns.Contains("Ten_Ky")) { p_objDes.Ten_Ky = CUtility.Convert_To_String(p_row["Ten_Ky"]); } if (p_dt.Columns.Contains("Created")) { p_objDes.Created = CUtility.Convert_To_DateTime(p_row["Created"]); } if (p_dt.Columns.Contains("Created_By")) { p_objDes.Created_By = CUtility.Convert_To_String(p_row["Created_By"]); } if (p_dt.Columns.Contains("Last_Updated")) { p_objDes.Last_Updated = CUtility.Convert_To_DateTime(p_row["Last_Updated"]); } if (p_dt.Columns.Contains("Last_Updated_By")) { p_objDes.Last_Updated_By = CUtility.Convert_To_String(p_row["Last_Updated_By"]); } if (p_dt.Columns.Contains("Deleted")) { p_objDes.Deleted = CUtility.Convert_To_Bool(p_row["Deleted"]); } }
private void MapDM_Don_Vi_Tinh_Chuyen_Doi(DataRow p_row, CDM_Don_Vi_Tinh_Chuyen_Doi p_objDes) { DataTable p_dt = p_row.Table; if (p_dt.Columns.Contains("Auto_ID")) { p_objDes.Auto_ID = CUtility.Convert_To_Int64(p_row["Auto_ID"]); } if (p_dt.Columns.Contains("Don_Vi_Tinh_ID")) { p_objDes.Don_Vi_Tinh_ID = CUtility.Convert_To_Int64(p_row["Don_Vi_Tinh_ID"]); } if (p_dt.Columns.Contains("Hang_Hoa_ID")) { p_objDes.Hang_Hoa_ID = CUtility.Convert_To_Int64(p_row["Hang_Hoa_ID"]); } if (p_dt.Columns.Contains("Ty_Le_Chuyen_Doi")) { p_objDes.Ty_Le_Chuyen_Doi = CUtility.Convert_To_Int32(p_row["Ty_Le_Chuyen_Doi"]); } if (p_dt.Columns.Contains("Phep_Tinh_Chuyen_ID")) { p_objDes.Phep_Tinh_Chuyen_ID = CUtility.Convert_To_Int64(p_row["Phep_Tinh_Chuyen_ID"]); } if (p_dt.Columns.Contains("Mo_Ta")) { p_objDes.Mo_Ta = CUtility.Convert_To_String(p_row["Mo_Ta"]); } if (p_dt.Columns.Contains("Gia_Ban_Si")) { p_objDes.Gia_Ban_Si = CUtility.Convert_To_Double(p_row["Gia_Ban_Si"]); } if (p_dt.Columns.Contains("Gia_Ban_Le")) { p_objDes.Gia_Ban_Le = CUtility.Convert_To_Double(p_row["Gia_Ban_Le"]); } if (p_dt.Columns.Contains("Gia_Ban_Dac_Biet")) { p_objDes.Gia_Ban_Dac_Biet = CUtility.Convert_To_Double(p_row["Gia_Ban_Dac_Biet"]); } if (p_dt.Columns.Contains("Created")) { p_objDes.Created = CUtility.Convert_To_DateTime(p_row["Created"]); } if (p_dt.Columns.Contains("Created_By")) { p_objDes.Created_By = CUtility.Convert_To_String(p_row["Created_By"]); } if (p_dt.Columns.Contains("Last_Updated")) { p_objDes.Last_Updated = CUtility.Convert_To_DateTime(p_row["Last_Updated"]); } if (p_dt.Columns.Contains("Last_Updated_By")) { p_objDes.Last_Updated_By = CUtility.Convert_To_String(p_row["Last_Updated_By"]); } if (p_dt.Columns.Contains("Deleted")) { p_objDes.Deleted = CUtility.Convert_To_Bool(p_row["Deleted"]); } }