|
|
@ -205,17 +205,17 @@ namespace EasyBL.WEBAPP.WSM |
|
|
|
{ |
|
|
|
do |
|
|
|
{ |
|
|
|
int iCountryID = 0; |
|
|
|
if (!String.IsNullOrEmpty(_fetchString(i_crm, @"CountryID"))) { |
|
|
|
iCountryID = int.Parse(_fetchString(i_crm, @"CountryID")); |
|
|
|
}; |
|
|
|
//var sCountryID = _fetchString(i_crm, @"CountryID");
|
|
|
|
// var iExsitChild = db.Queryable<SETB_UTL_City>().Count(x => x.OrgID == i_crm.ORIGID && x.CountryID == iCountryID);
|
|
|
|
//if (iExsitChild > 0)
|
|
|
|
//{
|
|
|
|
// sMsg = "message.ToDelArguments";//請先刪除該類別下邊參數值
|
|
|
|
// break;
|
|
|
|
//}
|
|
|
|
//int iCountryID = 0;
|
|
|
|
//if (!String.IsNullOrEmpty(_fetchString(i_crm, @"CountryID"))) {
|
|
|
|
// iCountryID = int.Parse(_fetchString(i_crm, @"CountryID"));
|
|
|
|
//};
|
|
|
|
var iCountryID = _fetchInt(i_crm, @"CountryID"); |
|
|
|
var CityValue = db.Queryable<SETB_UTL_City>().Count(x => x.OrgID == i_crm.ORIGID && x.CountryID == iCountryID); |
|
|
|
if (CityValue > 0) |
|
|
|
{ |
|
|
|
sMsg = "message.ToDelCityValue";//請先刪除該類別下邊參數值
|
|
|
|
break; |
|
|
|
} |
|
|
|
var oEntity = db.Queryable<SETB_SYS_Country>().Single(x => x.OrgID == i_crm.ORIGID && x.CountryID == iCountryID); |
|
|
|
var iRel = db.Updateable<SETB_SYS_Country>().UpdateColumns(x => new SETB_SYS_Country { DelStatus="Y" }).Where(x => x.OrgID == i_crm.ORIGID && x.CountryID == iCountryID).ExecuteCommand(); |
|
|
|
var iRelUp = db.Updateable<SETB_SYS_Country>() |
|
|
|