Пример #1
0
 /// <summary>
 /// Function to insert values to Route Table
 /// </summary>
 /// <param name="routeinfo"></param>
 public void RouteAdd(RouteInfo routeinfo)
 {
     try
     {
         spRoute.RouteAdd(routeinfo);
     }
     catch (Exception ex)
     {
         MessageBox.Show("RT2:" + ex.Message, "OpenMiracle", MessageBoxButtons.OK, MessageBoxIcon.Information);
     }
 }
Пример #2
0
 /// <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);
     }
 }