Ejemplo n.º 1
0
        private void DeleteDistrict()
        {
            string strError = "";

            if (districtIDList.Contains("$"))
            {
                if (Commons.ShowConfirmMessage(Lang.GetMessageByLanguage("000012", Commons.Culture, Commons.ResourceMessage).Replace("$Count$", districtIDList.Split('$').Length.ToString())))
                {
                    strError = busDistrict.DeleteListDistrict(districtIDList, districtCodeList, User.UserInfo.Username, User.UserInfo.LanguageID);
                }
            }
            else
            {
                if (Commons.ShowConfirmMessage(Lang.GetMessageByLanguage("000005", Commons.Culture, Commons.ResourceMessage)))
                {
                    strError = busDistrict.DeleteDistrict(districtIDList, districtCodeList, User.UserInfo.Username, User.UserInfo.LanguageID);
                }
            }

            if (strError.Equals(""))
            {
                LoadAllData();
            }
            else
            {
                Commons.ShowMessage(strError, 0);
            }
        }