| | |
| | | //如果设置有内部防区
|
| | | string msg = string.Empty;
|
| | | if (HdlSafeguardLogic.Current.IsHadInternalDefenseArea() == true)
|
| | |
|
| | | {
|
| | | //在家布防设置成功
|
| | | msg = Language.StringByID(R.MyInternationalizationString.uSetAtHomeGarrisonSuccess);
|
| | |
| | | //布防设置成功
|
| | | msg = Language.StringByID(R.MyInternationalizationString.uSetGarrisonSuccess);
|
| | | }
|
| | |
|
| | | if (UserCenterResourse.DicActionForm.ContainsKey("SafetyManagementMainForm") == true)
|
| | | {
|
| | | //添加布防上报的行控件
|
| | | var form = (Safety.SafetyManagementMainForm)UserCenterResourse.DicActionForm["SafetyManagementMainForm"];
|
| | | form?.AddSafeguardLogPushRow(null);
|
| | | }
|
| | | else
|
| | | {
|
| | | var control = new ShowMsgControl(ShowMsgType.Tip, msg);
|
| | | control.Show();
|
| | | }
|
| | | var control = new ShowMsgControl(ShowMsgType.Tip, msg);
|
| | | control.Show();
|
| | | });
|
| | | } |
| | | |
| | |
| | | {
|
| | | return;
|
| | | }
|
| | | if (UserCenterResourse.DicActionForm.ContainsKey("SafetyManagementMainForm") == true)
|
| | | {
|
| | | //添加布防上报的行控件
|
| | | var form = (Safety.SafetyManagementMainForm)UserCenterResourse.DicActionForm["SafetyManagementMainForm"];
|
| | | form?.AddSafeguardLogPushRow(null);
|
| | | }
|
| | | else
|
| | | {
|
| | | //离家布防设置成功
|
| | | string msg = Language.StringByID(R.MyInternationalizationString.uSetRemoveHomeGarrisonSuccess);
|
| | | var control = new ShowMsgControl(ShowMsgType.Tip, msg);
|
| | | control.Show();
|
| | | }
|
| | | //离家布防设置成功
|
| | | string msg = Language.StringByID(R.MyInternationalizationString.uSetRemoveHomeGarrisonSuccess);
|
| | | var control = new ShowMsgControl(ShowMsgType.Tip, msg);
|
| | | control.Show();
|
| | | });
|
| | | } |
| | | |
| | |
| | | //根据布防模式,设置图标的选择状态
|
| | | this.SetIconStatuByGarrisonMode(GarrisonMode.RemoveGarrison);
|
| | |
|
| | | if (UserCenterResourse.DicActionForm.ContainsKey("SafetyManagementMainForm") == true)
|
| | | {
|
| | | //添加布防上报的行控件
|
| | | var form = (Safety.SafetyManagementMainForm)UserCenterResourse.DicActionForm["SafetyManagementMainForm"];
|
| | | form?.AddSafeguardLogPushRow(null);
|
| | | }
|
| | | else
|
| | | {
|
| | | //离家布防设置成功
|
| | | string msg = Language.StringByID(R.MyInternationalizationString.uRemoveGarrisonSuccess);
|
| | | var control = new ShowMsgControl(ShowMsgType.Tip, msg);
|
| | | control.Show();
|
| | | }
|
| | | //离家布防设置成功
|
| | | string msg = Language.StringByID(R.MyInternationalizationString.uRemoveGarrisonSuccess);
|
| | | var control = new ShowMsgControl(ShowMsgType.Tip, msg);
|
| | | control.Show();
|
| | | });
|
| | | } |
| | | |