protected void btnSave_Click(object sender, System.EventArgs e) { int Count = Parm.Int("hfParmCount"); for (int i = 1; i <= Count; i++) { int IngredRno = Parm.Int("hfIngredRno" + i); decimal Qty = Parm.Dec("txtQty" + i); if (IngredRno != 0) { string Sql = string.Format( "Update Ingredients Set StockedPurchaseQty = {1} Where IngredRno = {0}", IngredRno, Qty); try { db.Exec(Sql); } catch (Exception Ex) { Err Err = new Err(Ex, Sql); Response.Write(Err.Html()); } } } fReport = true; dtBeg = Str.DtTm(hfBegDate.Value); dtEnd = Str.DtTm(hfEndDate.Value); }
async void OnTapped(Parm tt2) { QID = tt2.Q_id; ImageButton ck = tt2.Ctk; StackLayout man = tt2.Stk_main; await ck.FadeTo(0.7, 100); await ck.FadeTo(1, 200); DataRow[] fr = AddExam.dt_selectQ.Select("q_id=" + QID); if (fr.Length == 0) { AddExam.dt_selectQ.Rows.Add(QID); ck.Source = "choseok.png"; man.BackgroundColor = Color.FromHex("#EBFFF3"); AddExam.mark_qus = AddExam.mark_qus + tt2.Q_mark; } if (fr.Length == 1) { DataRow[] fr2 = AddExam.dt_selectQ.Select(); for (int i = 0; i < fr2.Length; i++) { if (Convert.ToInt32(fr[i]["q_id"].ToString()) == QID) { AddExam.dt_selectQ.Rows.RemoveAt(i); break; } } ck.Source = "choseno.png"; man.BackgroundColor = Color.White; AddExam.mark_qus = AddExam.mark_qus - tt2.Q_mark; } }
protected void Page_Load(object sender, EventArgs e) { g.User = (string)Session["User"]; if (g.User != null && g.User != "") { Int32 PaymentRno = Parm.Int("PaymentRno"); DateTime Tm = DateTime.Now; string Sql = "Update Payments Set " + "CCPrintDtTm = " + DB.PutDtTm(Tm) + ", " + "CCPrintUser = "******", " + "UpdatedDtTm = " + DB.PutDtTm(Tm) + ", " + "UpdatedUser = "******" " + "Where PaymentRno = " + PaymentRno; try { DB.DBExec(Sql); } catch (Exception) { } } }
public String ajax_MasterUpdata(Parm md) { _Parm PARMDataHandle = new _Parm() { Connection = getSQLConnection(), logPlamInfo = this.plamInfo }; PARMDataHandle.兩件以上運費 = md.兩件以上運費; PARMDataHandle.訂單運費_少於 = md.訂單運費_少於; PARMDataHandle.訂單運費設定 = md.訂單運費設定; PARMDataHandle.產品價格方式 = md.產品價格方式; PARMDataHandle.產品價格折扣 = md.產品價格折扣; PARMDataHandle.貨到付款手續費 = md.貨到付款手續費; PARMDataHandle.單樣產品運費 = md.單樣產品運費; PARMDataHandle.需付運費 = md.需付運費; PARMDataHandle.轉入帳號 = md.轉入帳號; PARMDataHandle.ATM戶名 = md.ATM戶名; PARMDataHandle.ATM代碼 = md.ATM代碼; PARMDataHandle.ATM銀行 = md.ATM銀行; ReturnAjaxFiles rAjaxResult = new ReturnAjaxFiles(); rAjaxResult.title = Resources.Res.Info_WorkResult; rAjaxResult.result = true; rAjaxResult.message = "參數更新完成"; return(JsonConvert.SerializeObject(rAjaxResult, new JsonSerializerSettings() { NullValueHandling = NullValueHandling.Ignore })); }
protected async void btnProcess_Click(object sender, EventArgs e) { await StartSling(); int NumJobsIDs = Str.Num(hfNumJobsIDs.Value); for (int i = 1; i <= NumJobsIDs; i++) { Int32 JobRno = Parm.Int("JobId_" + i.ToString()); if (JobRno > 0) { // add the shift await AddShift(JobRno); } } int NumSlingIDs = Str.Num(hfNumSlingIDs.Value); for (int i = 1; i <= NumSlingIDs; i++) { string SlingId = Parm.Str("SlingId_" + i.ToString()); if (SlingId != string.Empty) { // delete the shift await Sling.DeleteShift(Str.Num(SlingId)); } } await LoadData(); }
public async Task <IEnumerable <Policies> > GetPoliciesAsync(int apiType) { // @Mode = 0-- Select //@Mode = 2--Insert //@Mode = 3-- Update //@Mode = 4-- Delete //For Cloud connections like AZure //using (var Sqlconn = new ReliableConnection<SqlConnection>(conn)) using (var Sqlconn = new SqlConnection(conn)) { await Sqlconn.OpenAsync(); Parm parm = new Parm { DocumentID = -1, Mode = apiType, Policy_id = 0 }; //Execute Storeprocedure for all Points oPolicies = Sqlconn.Query <Policies>("PolicyData", parm); //Parameters.Empty);//, } return(oPolicies); }
private List <Parm> Decide() { Control.ControlCollection CC = flpPages.Controls; List <Parm> parms = new List <Parm>(); parms.Add(new Parm()); for (int i = 0; i < CC.Count; i++) { Pane pane = CC[i] as Pane; if (pane.SplitFirst) { parms.Add(new Parm()); } if (pane.DeleteMe) { continue; } Parm parm = parms[parms.Count - 1]; String k = parm.AddPDF(pane.fpSrc); parm.cat += String.Format(" {0}{1}{2}", k, pane.iPage, ",right,down,left".Split(',')[pane.RRot]); parm.frm.Add(pane.iPage); } return(parms); }
public ActionResult ReceiveGiftCard() { // get attendee info int id = Int32.Parse(Request["id"]); Attendee attendee = db.Attendees.Where(x => x.ID == id).FirstOrDefault(); // get card number string cardNum = Request["CardNumber"]; cardNum = cardNum.Last(4); // store the card in the database Parm parm = new Parm(); parm.ParmName = "GiftCard-" + attendee.ID; parm.ParmValue = cardNum; db.Parms.Add(parm); db.SaveChanges(); // store the signature string sig_fname = Server.MapPath("~") + "\\Content\\gift_card_signatures\\" + attendee.LastName + attendee.FirstName + "-GiftCardSig-" + cardNum + ".png"; SaveSig(sig_fname); // show the view return(RedirectToAction("IndivCheckin", new { id = id })); }
// GET: Winners/Next public ActionResult Next() { // init result IDictionary <string, string> data = new Dictionary <string, string>(); // get current queue position Parm parm = db.Parms.Where(x => x.ParmName == "CurrWinnerQueuePos").First(); int currQueuePos = int.Parse(parm.ParmValue); // find the next valid queue position List <Attendee> attendees = new List <Attendee>(); attendees = db.Attendees.Where(x => x.WinnerQueueOrder >= currQueuePos).OrderBy(x => x.WinnerQueueOrder).ToList(); // update the queue position if (attendees.Count >= 2) { parm.ParmValue = attendees[1].WinnerQueueOrder.ToString(); db.SaveChanges(); data["status"] = "success"; } else { parm.ParmValue = "9999"; db.SaveChanges(); data["status"] = "failure"; } // return json result return(Json(data, JsonRequestBehavior.AllowGet)); }
internal static bool CreateRegistrationAgenda() { // no Registration Agenda has yet been created for this Event RFIDDBEntities db = new RFIDDBEntities(); int accessEventID = int.Parse(ConfigurationManager.AppSettings["ActiveEvent"]); Parm checkinParm = new Parm(); List <EventDate> eDates = db.EventDates.Where(o => o.EventRecordsID == accessEventID).OrderBy(o => o.EventDate1).ToList(); checkinParm.ParmName = "RegistrationAgendaID"; Agenda regAg = new Agenda(); regAg.AgendaName = "Registration"; regAg.AgendaOrder = 0; regAg.AgendaType = 1; regAg.EventDateID = eDates[0].ID; db.Agendas.Add(regAg); db.SaveChanges(); checkinParm.ParmValue = regAg.ID.ToString(); db.Parms.Add(checkinParm); db.SaveChanges(); return(true); }
public ActionResult UploadWaiver() { // process incoming waiver if (Request.Files.Count > 0 && Request.Files["Document"].FileName != "") { // set local and web path of uploaded photo string local_path = Server.MapPath("~") + "\\Content\\activity_waivers\\"; string web_path = "/Content/activity_waivers/"; string prefix = string.Format(@"{0}", DateTime.Now.Ticks); string suffix = Request.Files["Document"].FileName.Substring(Request.Files["Document"].FileName.LastIndexOf('.')); string local_fname = local_path + prefix + suffix; string url = web_path + prefix + suffix; // save the uploaded file var uploadedFile = Request.Files["Document"]; System.IO.File.Delete(local_fname); uploadedFile.SaveAs(local_fname); // save this in the database int activityId = Int32.Parse(Request["id"]); string parmName = "ActivityWaiver-" + activityId; string parmValue = url + "," + Request["Label"]; Parm parm = new Parm(); parm.ParmName = parmName; parm.ParmValue = parmValue; db.Parms.Add(parm); db.SaveChanges(); } // redirect back to waiver list return(RedirectToAction("Waivers/" + Request["id"])); }
private void cargarValor(Parm parm, int tipo, string txtValor, decimal numValor, string boolValor) { switch (tipo) { case 0: parm.ParmValNum = 0; if (_parameters.MustEncript(parm.ParmId)) { parm.ParmValTxt = _security.Encriptar(txtValor); } else { parm.ParmValTxt = txtValor; } break; case 1: parm.ParmValNum = numValor; parm.ParmValTxt = ""; break; case 2: parm.ParmValNum = 0; parm.ParmValTxt = boolValor; break; } }
private void Page_Load(object sender, System.EventArgs e) { db = new DB(); Pg = new WebPage("Images"); Pg.CheckLogin(Path.GetFileNameWithoutExtension(Page.AppRelativeVirtualPath)); // Put user code to initialize the page here if (!Page.IsPostBack) { Session["Menu"] = WebPage.Shopping.Title; // if an ingred rno passed in then well setup for a new receipt for the ingredient on today with No Vendor NewIngredRno = Parm.Int("IngredRno"); if (NewIngredRno != 0) { IngredReceipt(NewIngredRno); LoadList(); hfTab.Value = "1"; } else { Setup(); } } }
async void OnTapped(Parm tt2) { //QID = tt2.Q_id; StackLayout ck = tt2.Ctk; await ck.FadeTo(0.7, 100); await ck.FadeTo(1, 200); qtyp = tt2.Qtyp; qhour = tt2.Qhour; qmark = tt2.Qmark; qdat = tt2.Qdat; qtim = tt2.Qtim; des = tt2.Des; Eid = tt2.E_id; if (tt2.Stat != "Finish") { await Shell.Current.Navigation.PushAsync(new UpdateExam()); } else { await PopupNavigation.Instance.PushAsync(new ExamResults()); } }
protected void Page_Load(object sender, EventArgs e) { Int32 CustomerRno = Parm.Int("Customer"); string ExportId = Parm.Str("ExportId"); if (CustomerRno == 0) // || ExportId.Length == 0) { Response.Clear(); Response.ContentType = "text/plain"; if (CustomerRno == 0) { Response.Write("Missing customer number: ExportedCustomer.asx?Customer=nnn\n"); } //if (ExportId.Length == 0) //{ // Response.Write("Missing export ID: ExportedCustomer.asx?ExportId=xxx\n"); //} Response.End(); } else { string Sql = string.Format("Select Count(*) From mcJobs Where JobRno = {0}", CustomerRno); try { using (DB db = new DB()) { int Count = db.SqlNum(Sql); if (Count > 0) { //Sql = string.Format("Update mcJobs Set CustomerExportId = '{1}', CustomerExportDtTm = GetDate() Where JobRno = {0}", CustomerRno, ExportId); Sql = string.Format("Update mcJobs Set CustomerExportId = '{1}' Where JobRno = {0}", CustomerRno, ExportId); db.Exec(Sql); Response.Clear(); Response.ContentType = "text/plain"; Response.Write("OK"); Response.Flush(); } else { Response.Clear(); Response.ContentType = "text/plain"; Response.Write("Customer not found"); Response.Flush(); } } } catch (Exception Ex) { Err Err = new Err(Ex, Sql); Response.Clear(); Response.ContentType = "text/plain"; Response.Write(Ex.ToString()); Response.End(); } Response.End(); } }
// GET: /Registration/IndivCheckin public ActionResult IndivCheckin(int id) { // pass the attendee to the view Attendee attendee = db.Attendees.Where(x => x.ID == id).FirstOrDefault(); ViewBag.attendee = attendee; // get ids for the activity and agenda Parm checkinParm = db.Parms.Where(o => o.ParmName == "RegistrationAgendaID").FirstOrDefault(); int agendaID = Int32.Parse(checkinParm.ParmValue); ViewBag.agendaId = agendaID; List <Activity> activities = db.Activities.Where(o => o.AgendaID == agendaID).ToList(); ViewBag.activityId = activities[0].ID; // show attendee type int participant_type = Int32.Parse(attendee.ParticipantType); AttendeeType attendeeType = db.AttendeeTypes.Where(x => x.ID == participant_type).FirstOrDefault(); ViewBag.attendeeType = attendeeType; // pass list of registered gift cards ViewBag.giftcards = GiftCard.GetIssued(db, attendee); // pass a list of waivers List <Parm> parms = db.Parms.Where(x => x.ParmName.StartsWith("ActivityWaiver-")).ToList(); ViewBag.waivers = new List <Waiver>(); foreach (Parm parm in parms) { // get the activity id int activityId = Int32.Parse(parm.ParmName.Substring(parm.ParmName.IndexOf('-') + 1)); // parse out the url and name int commaPos = parm.ParmValue.IndexOf(','); string url = parm.ParmValue.Substring(0, commaPos); string name = parm.ParmValue.Substring(commaPos + 1); // check for existing signature string name_encoded = new string (name.Where(Char.IsLetter).ToArray()); string sig_url = "/Content/activity_waivers/" + attendee.LastName + attendee.FirstName + "-WaiverSig-" + name_encoded + ".png"; string sig_fname = Server.MapPath("~") + "Content\\activity_waivers\\" + attendee.LastName + attendee.FirstName + "-WaiverSig-" + name_encoded + ".png"; if (!System.IO.File.Exists(sig_fname)) { sig_url = null; } // store this waiver in the list ViewBag.waivers.Add(new Waiver(parm.ID, url, name, sig_url)); } // display the view return(View()); }
public double GetDouble(string name) { Parm p = GetParm(name); if (p != null) { return(p.m_dval); } return(0.0); }
async void OnTapped(Parm tt2) { QID = tt2.Q_id; StackLayout ck = tt2.Ctk; await ck.FadeTo(0.7, 100); await ck.FadeTo(1, 200); await Shell.Current.Navigation.PushAsync(new UpdateQuestion()); }
// build a comma delimited list of PropPricingRno values that are checked protected string ResponseOptions(string PricingCode) { string Options = string.Empty; string Sql = string.Format( "Select PropPricingRno, OptionType From ProposalPricingOptions " + "Where PricingCode = '{0}' " + "And Seq Is Not Null And " + "DeletedDtTm Is Null " + "Order by Seq", PricingCode); try { DataTable dt = db.DataTable(Sql); { foreach (DataRow dr in dt.Rows) { int PropPricingRno = DB.Int32(dr["PropPricingRno"]); string Type = DB.Str(dr["OptionType"]); string ID = string.Format("opt_{0}", PropPricingRno); switch (Type) { case OptionType.Hidden: break; case OptionType.Checkbox: if (Parm.Bool(ID)) { Options += string.Format(",{0}", PropPricingRno); } break; case OptionType.Number: int Num = Parm.Int(ID); Options += string.Format(",{0} {1}", PropPricingRno, Num); break; } } } if (Options.Length > 0) { Options = Options.Substring(1); } } catch (Exception Ex) { Err Err = new Err(Ex, Sql); Response.Write(Err.Html()); } return(Options); }
async void OnTapped(Parm tt2) { StackLayout ck = tt2.Ctk; await ck.FadeTo(0.7, 100); await ck.FadeTo(1, 200); idd = tt2.Idd; tech_ = tt2.Tech; NickName = tt2.Nickname; await PopupNavigation.Instance.PushAsync(new UserInfo()); }
private void SaveConversions(int IngredRno) { for (int iConversion = 1; iConversion <= cConversions; iConversion++) { int IngredConvRno = Parm.Int("hfIngredConvRno" + iConversion); decimal Qty = Str.Fract(Parm.Str("txtQty" + iConversion)); int RecipeUnitRno = Parm.Int("hfRecipeUnitRno" + iConversion); decimal PurchaseQty = Parm.Dec("hfPurchaseQty" + iConversion); int PurchaseUnitRno = Parm.Int("hfPurchaseUnitRno" + iConversion); string Sql = string.Empty; bool fRemove = Parm.Bool("chkRemove" + iConversion); if (!fRemove) { try { if (Qty > 0) { if (IngredConvRno == 0) { Sql = string.Format( "Insert Into IngredConv (IngredRno, PurchaseQty, PurchaseUnitRno, RecipeUnitRno, CreatedDtTm, CreatedUser) Values (" + "{0}, {1}, {2}, {3}, GetDate(), {4}); " + "Select Scope_Identity()", IngredRno, PurchaseQty, PurchaseUnitRno, RecipeUnitRno, DB.PutStr(g.User)); IngredConvRno = db.SqlNum(Sql); } Sql = string.Format( "Update IngredConv Set " + "RecipeQty = {1}, " + "UpdatedDtTm = GetDate(), " + "UpdatedUser = {2} " + "Where IngredConvRno = {0}", IngredConvRno, Qty, DB.PutStr(g.User)); db.Exec(Sql); } } catch (Exception Ex) { Err Err = new Err(Ex, Sql); Response.Write(Err.Html()); } } } }
public ActionResult DeleteWaiver(int id) { // delete the waiver Parm parm = db.Parms.Where(o => o.ID == id).FirstOrDefault(); db.Parms.Remove(parm); db.SaveChanges(); // return to editing this waiver int activityId = Int32.Parse(Request["activity"]); return(RedirectToAction("Waivers/" + activityId)); }
// GET: Registration/Busses public ActionResult Busses() { Parm checkinParm = db.Parms.Where(o => o.ParmName == "RegistrationAgendaID").FirstOrDefault(); if (checkinParm == null) { bool good = ATAPS_Pile.CreateRegistrationAgenda(); } checkinParm = db.Parms.Where(o => o.ParmName == "RegistrationAgendaID").FirstOrDefault(); AgendaDisplayObject regAgenda = DBHelper.GetAgendaWithDataByID(int.Parse(checkinParm.ParmValue)); return(View(regAgenda)); }
// GET: Winners/Reset public ActionResult Reset() { // reset the queue position Parm parm = db.Parms.Where(x => x.ParmName == "CurrWinnerQueuePos").First(); parm.ParmValue = "0"; db.SaveChanges(); // return json result IDictionary <string, string> data = new Dictionary <string, string>(); data["status"] = "success"; return(Json(data, JsonRequestBehavior.AllowGet)); }
protected void Page_Load(object sender, EventArgs e) { // insure the user is logged in g.User = (string)Session["User"]; if (!(g.User == null || g.User == "")) { switch (Parm.Str("Action")) { case "SetNonPurchase": SetNonPurchase(Parm.Int("Rno"), Parm.Bool("NonPurchase")); break; } } }
public void Execute(Parm parm) { if (parm is A) { DoSthA(); } else if (parm is B) { DoSthB(); } else if (parm is C) { DoSthC(); } }
private void Page_Load(object sender, System.EventArgs e) { db = new DB(); Pg = new WebPage("Images"); Pg.CheckLogin(Path.GetFileNameWithoutExtension(Page.AppRelativeVirtualPath)); // Put user code to initialize the page here if (!Page.IsPostBack) { Session["Menu"] = WebPage.Recipes.Title; } RecipeRno = Parm.Int("Rno"); Scale(); }
public Course() { InitializeComponent(); CourseClick = new Command <Parm>((Parm parameter) => OnTapped(parameter)); stk.Children.Clear(); string nName = ""; DataRow[] fr; fr = Login.dt_user.Select(); if (fr.Length > 0) { nName = fr[0]["User_nickname"].ToString(); } fr = Login.dt_course.Select(); nickname.Text = nName; for (int i = 0; i < fr.Length; i++) { Button but = new Button { BackgroundColor = Color.White, CornerRadius = 10, BorderWidth = 1, Margin = 10, Opacity = .8, Text = fr[i]["course_name"].ToString(), BorderColor = Color.FromHex("#063AC4"), TextColor = Color.FromHex("#2145A6"), FontFamily = (OnPlatform <string>)Application.Current.Resources["Raleway"], CommandParameter = fr[i]["course_id"].ToString(), FontSize = Device.GetNamedSize(NamedSize.Large, typeof(Label)) }; but.BindingContext = this; but.SetBinding(Button.CommandProperty, new Binding("CourseClick", 0)); var c1 = new Parm { Course_id = Convert.ToInt32(fr[i]["course_id"].ToString()), CourseName = fr[i]["course_name"].ToString() }; but.CommandParameter = c1;// yr.ToString() + "-" + mnt + "-" + ddy; //but.Clicked += (sender, args) => DisplayAlert("", tm, "ok"); //ButtonClickCommand = new Command(ButtonClicked); stk.Children.Add(but); } }
async void OnTapped(Parm tt2) { EID = tt2.Idd; ETime = tt2.Hor; StackLayout ck = tt2.Ctk; await ck.FadeTo(0.7, 100); await ck.FadeTo(1, 200); DataRow[] fr = dt_exam.Select("id=" + EID); if (fr.Length > 0) { mark_of_Exam = Convert.ToInt32(fr[0]["mark"].ToString()); } await Shell.Current.Navigation.PushAsync(new Start_Exam_View()); }
public ActionResult CreateBus([Bind(Include = "ID,ActivityName,AgendaID")] Activity activity) { //if (filter == null) { return HttpNotFound(); } //ViewBag.FilterID = filter; //activity.AgendaID = filter ?? default(int); Parm checkinParm = db.Parms.Where(o => o.ParmName == "RegistrationAgendaID").FirstOrDefault(); activity.AgendaID = int.Parse(checkinParm.ParmValue); activity.ActivityTypeID = 1; if (ModelState.IsValid) { db.Activities.Add(activity); db.SaveChanges(); return(RedirectToAction("Busses")); } return(View(activity)); }
public String ajax_MasterUpdata(Parm md) { _Parm PARMDataHandle = new _Parm() { Connection = getSQLConnection(),logPlamInfo=this.plamInfo }; PARMDataHandle.兩件以上運費 = md.兩件以上運費; PARMDataHandle.訂單運費_少於 = md.訂單運費_少於; PARMDataHandle.訂單運費設定 = md.訂單運費設定; PARMDataHandle.產品價格方式 = md.產品價格方式; PARMDataHandle.產品價格折扣 = md.產品價格折扣; PARMDataHandle.貨到付款手續費 = md.貨到付款手續費; PARMDataHandle.單樣產品運費 = md.單樣產品運費; PARMDataHandle.需付運費 = md.需付運費; PARMDataHandle.轉入帳號 = md.轉入帳號; PARMDataHandle.ATM戶名 = md.ATM戶名; PARMDataHandle.ATM代碼 = md.ATM代碼; PARMDataHandle.ATM銀行 = md.ATM銀行; ReturnAjaxFiles rAjaxResult = new ReturnAjaxFiles(); rAjaxResult.title = Resources.Res.Info_WorkResult; rAjaxResult.result = true; rAjaxResult.message = "參數更新完成"; return JsonConvert.SerializeObject(rAjaxResult, new JsonSerializerSettings() { NullValueHandling = NullValueHandling.Ignore }); }
private Parm eatParm(TextProcessor textProcessor) { // <@parm name = "xxx" type="xxx" description="xxxxxx" /> // textProcessor.EatSpace(); if (textProcessor.End()) return null; // if (!textProcessor.EatString("<@parm ", StringComparison.OrdinalIgnoreCase)) return null; textProcessor.EatSpace(); // Parm result = new Parm(); // while (!textProcessor.EatString("/>")) { NameValue attr = this.eatAttr(textProcessor); if (attr == null) break; // if (string.Equals(attr.Name, "name", StringComparison.OrdinalIgnoreCase)) result.Name = attr.Value; if (string.Equals(attr.Name, "type", StringComparison.OrdinalIgnoreCase)) result.Type = attr.Value; if (string.Equals(attr.Name, "description", StringComparison.OrdinalIgnoreCase)) result.Description = attr.Value; if (string.Equals(attr.Name, "default", StringComparison.OrdinalIgnoreCase)) result.Default = attr.Value; if (string.Equals(attr.Name, "optional", StringComparison.OrdinalIgnoreCase)) result.Optional = !string.Equals(attr.Value, "false", StringComparison.OrdinalIgnoreCase); // textProcessor.EatSpace(); } // return result; }