/// <summary> /// creating a default route under the creating area /// </summary> public void RouteNACreateUnderTheArea() { try { RouteSP spRoute = new RouteSP(); RouteInfo infoRoute = new RouteInfo(); infoRoute.RouteName = "NA"; infoRoute.AreaId = decAreaId; infoRoute.Narration = txtNarration.Text.Trim(); infoRoute.Extra1 = string.Empty; infoRoute.Extra2 = string.Empty; infoRoute.ExtraDate = DateTime.Today; spRoute.RouteAdd(infoRoute); } catch (Exception ex) { MessageBox.Show("AR2" + ex.Message, "OpenMiracle", MessageBoxButtons.OK, MessageBoxIcon.Information); } }
/// <summary> /// creating a default route under the creating area /// </summary> public void RouteNACreateUnderTheArea() { try { RouteSP spRoute = new RouteSP(); RouteInfo infoRoute = new RouteInfo(); infoRoute.RouteName = "NA"; infoRoute.AreaId = decAreaId; infoRoute.Narration = txtNarration.Text.Trim(); infoRoute.Extra1 = string.Empty; infoRoute.Extra2 = string.Empty; infoRoute.ExtraDate = DateTime.Today; spRoute.RouteAdd(infoRoute); } catch (Exception ex) { formMDI.infoError.ErrorString = "AR2:" + ex.Message; } }