public void LoadHourlyProduction(HourlyProduction HourlyProduction) { for (int i = 1; i <= 15; i++) { switch (i) { case 1: FindViewById <TextView>(Resource.Id.period1).Text = Html.FromHtml("1st<br/>" + HourlyProduction.one.ToString()).ToString(); break; case 2: FindViewById <TextView>(Resource.Id.period2).Text = Html.FromHtml("2nd<br/>" + HourlyProduction.two.ToString()).ToString(); break; case 3: FindViewById <TextView>(Resource.Id.period3).Text = Html.FromHtml("3rd<br/>" + HourlyProduction.three.ToString()).ToString(); break; case 4: FindViewById <TextView>(Resource.Id.period4).Text = Html.FromHtml("4th<br/>" + HourlyProduction.four.ToString()).ToString(); break; case 5: FindViewById <TextView>(Resource.Id.period5).Text = Html.FromHtml("5th<br/>" + HourlyProduction.five.ToString()).ToString(); break; case 6: FindViewById <TextView>(Resource.Id.period6).Text = Html.FromHtml("6th<br/>" + HourlyProduction.six.ToString()).ToString(); break; case 7: FindViewById <TextView>(Resource.Id.period7).Text = Html.FromHtml("7th<br/>" + HourlyProduction.seven.ToString()).ToString(); break; case 8: FindViewById <TextView>(Resource.Id.period8).Text = Html.FromHtml("8th<br/>" + HourlyProduction.eight.ToString()).ToString(); break; case 9: FindViewById <TextView>(Resource.Id.period9).Text = Html.FromHtml("9th<br/>" + HourlyProduction.nine.ToString()).ToString(); break; case 10: FindViewById <TextView>(Resource.Id.period10).Text = Html.FromHtml("10th<br/>" + HourlyProduction.ten.ToString()).ToString(); break; case 11: FindViewById <TextView>(Resource.Id.period11).Text = Html.FromHtml("11th<br/>" + HourlyProduction.eleven.ToString()).ToString(); break; case 12: FindViewById <TextView>(Resource.Id.period12).Text = Html.FromHtml("12th<br/>" + HourlyProduction.tweleve.ToString()).ToString(); break; case 13: FindViewById <TextView>(Resource.Id.period13).Text = Html.FromHtml("13th<br/>" + HourlyProduction.thirteen.ToString()).ToString(); break; case 14: FindViewById <TextView>(Resource.Id.period14).Text = Html.FromHtml("14th<br/>" + HourlyProduction.fourteen.ToString()).ToString(); break; case 15: FindViewById <TextView>(Resource.Id.period15).Text = Html.FromHtml("15th<br/>" + HourlyProduction.fifteen.ToString()).ToString(); break; } } }
public DataTable Load_production_all() { HourlyProduction pro = new HourlyProduction(); return(pro.Load_production_all()); }
public DataTable Save_Production(HourlyProduction hwrk) { //PlanBoard plan = new PlanBoard(CommonData.ConStr()); return(hwrk.Save_Production()); }