Ejemplo n.º 1
0
 public static List<uspGetQuarterResult> GetAllQuarters(long categroyid)
 {
     DataClassesDataContext datacontext = new DataClassesDataContext();
     long? j = null;
     if(categroyid>0)
         j=categroyid;
     var varquarter = datacontext.uspGetQuarter(j).ToList();
     uspGetQuarterResult p = new uspGetQuarterResult();
     
     
     return varquarter;
 }
Ejemplo n.º 2
0
 protected void grdQuarters_databound(object sender, GridViewRowEventArgs e)
 {
     if (e.Row.RowType == DataControlRowType.DataRow)
     {
         Label l = e.Row.FindControl("lblstatus") as Label;
         uspGetQuarterResult qr = e.Row.DataItem as uspGetQuarterResult;
         if (qr.Status.HasValue)
         {
             string qs = Enum.GetName(typeof(QuarterStatus), qr.Status.Value);
             l.Text = qs;
         }
     }
 }