public void Call(DmType dmtype, string callstring) { //InitCom(); //string StrMain = callstring; //if ( dmtype == DmType.姓名 ) //{ // StrMain = "姓名:" + callstring; //} //if ( dmtype == DmType.应收 ) //{ // StrMain = dmtype.ToString() + ":" + callstring; //} //if ( dmtype == DmType.实收 ) //{ // StrMain = dmtype.ToString() + ":" + callstring; //} //if ( dmtype == DmType.找零 ) //{ // StrMain = dmtype.ToString() + ":" + callstring; //} //if ( dmtype == DmType.欢迎 ) //{ // if ( callstring == "抱歉,暂停工作" ) // StrMain = "抱歉,暂停工作"; // else // { // //DispDefaultData(); // //return; // StrMain = "您好"; // } //} //if ( dmtype == DmType.清除 ) //{ // StopPost(); // StrMain = "您好"; //} //int ret2 = SendDataChar( StrMain , FontName , xColor , F_Width , F_Height , // LeftSpa , TopSpa , WordSpa , RowSpa , EnterMode , ExitMode , EnterSpeed , ExitSpeed , StopTime ); aa a = new aa(dmtype, callstring); if (dmtype == DmType.应收 || dmtype == DmType.实收) { Thread t = new Thread(new ThreadStart(a.call)); t.Start(); } else { a.call(); } }
private void Add(string name, int defw, bool en = true) { ListViewItem li = new ListViewItem(LanuageMgr.GetStr(name)); if (en) { FormMain.itemheader i = f.listProcessGetListHeaderItem(name); if (i != null) { aa a = new aa(); a.b = i.width; a.a = name; li.Checked = i.show; li.Tag = a; if (i.index > listView1.Items.Count) { listView1.Items.Insert(listView1.Items.Count, li); } else { listView1.Items.Insert(i.index, li); } } else { aa a = new aa(); a.b = defw; a.a = name; li.Tag = a; listView1.Items.Add(li); } } }
private static bool u(aa A_0) { while (A_0.c.c()) { if (A_0.c.h >= 48 && A_0.c.h <= 57) { A_0.c.k.Append((char)A_0.c.h); } else { if (A_0.c.h == 32 || (A_0.c.h >= 9 && A_0.c.h <= 13)) { A_0.a = true; A_0.b = 1; return(true); } int num = A_0.c.h; if (num == 44 || num == 93 || num == 125) { A_0.c.a(); A_0.a = true; A_0.b = 1; return(true); } return(false); } } return(true); }
//determines if two given AA are PtoN or NtoP private bool alternating_aa(aa prevAA, aa curAA) { if (prevAA != null && curAA != null) { if ('P' == prevAA.mPolarity || prevAA.mPolarity == 'Q') { if ('N' == curAA.mPolarity || curAA.mPolarity == 'Q') { return(true); } else { return(false); } } else if ('N' == prevAA.mPolarity || prevAA.mPolarity == 'Q') { if ('P' == curAA.mPolarity || curAA.mPolarity == 'Q') { return(true); } else { return(false); } } else//no other way to be alternating { return(false); } } return(false); }
public override global::System.Data.DataSet Clone() { aa cln = ((aa)(base.Clone())); cln.InitVars(); cln.SchemaSerializationMode = this.SchemaSerializationMode; return(cln); }
public IActionResult Detial() { var res = new aa { id = 1, GamePopularity = 1, IsHotPush = 1, SmallIconUrl = "test", username = "******" }; return(View(res)); }
public IActionResult Update(aa model) { //验证 aaVaildator validator = new aaVaildator(); //验证不过抛异常 validator.ValidateAndThrow(model); return(Success("更新成功!")); }
private static bool y(aa A_0) { A_0.c.c(); if (A_0.c.h == 32 || (A_0.c.h >= 9 && A_0.c.h <= 13)) { A_0.a = true; A_0.b = 1; return(true); } int num = A_0.c.h; if (num <= 69) { switch (num) { case 44: break; case 45: return(false); case 46: A_0.c.k.Append((char)A_0.c.h); A_0.b = 5; return(true); default: if (num != 69) { return(false); } goto IL_C6; } } else if (num != 93) { if (num == 101) { goto IL_C6; } if (num != 125) { return(false); } } A_0.c.a(); A_0.a = true; A_0.b = 1; return(true); IL_C6: A_0.c.k.Append((char)A_0.c.h); A_0.b = 7; return(true); }
private static bool x(aa A_0) { A_0.c.c(); if (A_0.c.h >= 48 && A_0.c.h <= 57) { A_0.c.k.Append((char)A_0.c.h); A_0.b = 6; return(true); } return(false); }
public static global::System.Xml.Schema.XmlSchemaComplexType GetTypedDataSetSchema(global::System.Xml.Schema.XmlSchemaSet xs) { aa ds = new aa(); global::System.Xml.Schema.XmlSchemaComplexType type = new global::System.Xml.Schema.XmlSchemaComplexType(); global::System.Xml.Schema.XmlSchemaSequence sequence = new global::System.Xml.Schema.XmlSchemaSequence(); global::System.Xml.Schema.XmlSchemaAny any = new global::System.Xml.Schema.XmlSchemaAny(); any.Namespace = ds.Namespace; sequence.Items.Add(any); type.Particle = sequence; global::System.Xml.Schema.XmlSchema dsSchema = ds.GetSchemaSerializable(); if (xs.Contains(dsSchema.TargetNamespace)) { global::System.IO.MemoryStream s1 = new global::System.IO.MemoryStream(); global::System.IO.MemoryStream s2 = new global::System.IO.MemoryStream(); try { global::System.Xml.Schema.XmlSchema schema = null; dsSchema.Write(s1); for (global::System.Collections.IEnumerator schemas = xs.Schemas(dsSchema.TargetNamespace).GetEnumerator(); schemas.MoveNext();) { schema = ((global::System.Xml.Schema.XmlSchema)(schemas.Current)); s2.SetLength(0); schema.Write(s2); if ((s1.Length == s2.Length)) { s1.Position = 0; s2.Position = 0; for (; ((s1.Position != s1.Length) && (s1.ReadByte() == s2.ReadByte()));) { ; } if ((s1.Position == s1.Length)) { return(type); } } } } finally { if ((s1 != null)) { s1.Close(); } if ((s2 != null)) { s2.Close(); } } } xs.Add(dsSchema); return(type); }
private static bool q(aa A_0) { A_0.c.c(); int num = A_0.c.h; if (num == 97) { A_0.b = 13; return(true); } return(false); }
private static bool b(aa A_0) { while (A_0.c.c()) { if (A_0.c.h == 42) { A_0.b = 28; return(true); } } return(true); }
private static bool m(aa A_0) { A_0.c.c(); int num = A_0.c.h; if (num == 117) { A_0.b = 17; return(true); } return(false); }
private static bool c(aa A_0) { while (A_0.c.c()) { if (A_0.c.h == 10) { A_0.b = 1; return(true); } } return(true); }
public Lexer(TextReader A_0) { this.c = true; this.d = true; this.g = 0; this.k = new StringBuilder(128); this.j = 1; this.e = false; this.i = A_0; this.f = new aa(); this.f.c = this; }
private static bool l(aa A_0) { A_0.c.c(); int num = A_0.c.h; if (num == 108) { A_0.b = 18; return(true); } return(false); }
private static bool w(aa A_0) { while (A_0.c.c()) { if (A_0.c.h >= 48 && A_0.c.h <= 57) { A_0.c.k.Append((char)A_0.c.h); } else { if (A_0.c.h == 32 || (A_0.c.h >= 9 && A_0.c.h <= 13)) { A_0.a = true; A_0.b = 1; return(true); } int num = A_0.c.h; if (num <= 69) { if (num != 44) { if (num != 69) { return(false); } goto IL_C9; } } else if (num != 93) { if (num == 101) { goto IL_C9; } if (num != 125) { return(false); } } A_0.c.a(); A_0.a = true; A_0.b = 1; return(true); IL_C9: A_0.c.k.Append((char)A_0.c.h); A_0.b = 7; return(true); } } return(true); }
private static bool i(aa A_0) { A_0.c.c(); int num = A_0.c.h; if (num == 34) { A_0.a = true; A_0.b = 1; return(true); } return(false); }
private static bool h(aa A_0) { A_0.c.c(); int num = A_0.c.h; if (num <= 92) { if (num <= 39) { if (num != 34 && num != 39) { return(false); } } else if (num != 47 && num != 92) { return(false); } } else if (num <= 102) { if (num != 98 && num != 102) { return(false); } } else if (num != 110) { switch (num) { case 114: case 116: break; case 115: return(false); case 117: A_0.b = 22; return(true); default: return(false); } } A_0.c.k.Append(Lexer.a(A_0.c.h)); A_0.b = A_0.d; return(true); }
private void button8_Click(object sender, EventArgs e) { new m2mqtt().Subscribe(); return; aa bb = new aa(); bb.error = 0; bb.message = "login"; bb.data = new { accessToken = "asdf2f2545asfegycaetvA", optResult = 0 }; JavaScriptSerializer js = new JavaScriptSerializer(); string sss = js.Serialize(bb); aa a = js.Deserialize <aa>(sss); return; //decimal mElectric = (decimal)1.2; decimal mElectric = (decimal)120.26; DateTime mTime = DateTime.Now; DateTime.TryParse("2019-10-10 14:25:36", out mTime); Random random = new Random(); uint electric = (uint)(mElectric * 100); int second = callCFun.u32CalTotalSecond(mTime.Year, mTime.Month, mTime.Day, mTime.Hour, mTime.Minute, mTime.Second); long lsed = 1000; // random.Next(100, 10000); byte[] ele = BitConverter.GetBytes(electric); /*电能*/ byte[] sed = BitConverter.GetBytes(second); /*时间*/ byte[] pi_buf = ele.Concat(sed).ToArray(); /*电能加时间*/ byte[] ks_buf = BitConverter.GetBytes(lsed); /*密钥*/ byte[] co_buf = new byte[8]; callCFun.f_des_encrypt(pi_buf, ks_buf, co_buf); byte[] data = co_buf.Concat(ks_buf).ToArray(); StringBuilder fcode = new StringBuilder(500); //string fcode = ""; bool isNum = dllHepler.GetSerialNumber(fcode, fcode.Capacity); StringBuilder ff = new StringBuilder(); ff.Append("028C19397341BB21F57967FA1E4E4C5D"); bool iscc = dllHepler.RegisterDll(ff); byte[] data1 = new byte[16]; bool rst = dllHepler.f_des_encryptByTimeEle(mTime.Year, mTime.Month, mTime.Day, mTime.Hour, mTime.Minute, mTime.Second, (float)mElectric, data1); }
private static bool a(aa A_0) { while (A_0.c.c()) { if (A_0.c.h != 42) { if (A_0.c.h == 47) { A_0.b = 1; return(true); } A_0.b = 27; return(true); } } return(true); }
private static bool d(aa A_0) { A_0.c.c(); int num = A_0.c.h; if (num == 42) { A_0.b = 27; return(true); } if (num != 47) { return(false); } A_0.b = 26; return(true); }
public void Comparing_struct_equal_works() { var aaComparand = new aa(); Expression <Func <Foo, bool> > e = foo => foo.Prop4 == aaComparand; var f = e.CompileFast(true); var f2 = e.Compile(); Assert.IsNotNull(f); Assert.AreEqual(f2(new Foo() { Prop4 = aaComparand }), f(new Foo() { Prop4 = aaComparand })); }
public Calendar() { this.SetStyle(ControlStyles.OptimizedDoubleBuffer | ControlStyles.ResizeRedraw | ControlStyles.AllPaintingInWmPaint, true); // this.InitializeComponent(); // this.TabStop = false; // this.Size = new Size(200, 200); // this.BackColor = Color.White; // a = new aa(); a.Click += click; Application.AddMessageFilter(a); }
private static bool v(aa A_0) { A_0.c.c(); if (A_0.c.h >= 48 && A_0.c.h <= 57) { A_0.c.k.Append((char)A_0.c.h); A_0.b = 8; return(true); } switch (A_0.c.h) { case 43: case 45: A_0.c.k.Append((char)A_0.c.h); A_0.b = 8; return(true); } return(false); }
private static bool aa(aa A_0) { A_0.c.c(); if (A_0.c.h >= 49 && A_0.c.h <= 57) { A_0.c.k.Append((char)A_0.c.h); A_0.b = 3; return(true); } int num = A_0.c.h; if (num == 48) { A_0.c.k.Append((char)A_0.c.h); A_0.b = 4; return(true); } return(false); }
/// <summary> /// /// </summary> /// <param name="tb"></param> /// <param name="ts"></param> /// <returns></returns> public static IDictionary <string, object>[] GetDataTableArrayHasColum(this System.Data.DataTable tb, long ts = 1000) { if (tb.Rows.Count <= 0) { return(EmptyDictionaryArray); } var colums = tb.Columns.Cast <System.Data.DataColumn>().ToArray(); var array = new aa[tb.Rows.Count]; int index = 0; foreach (System.Data.DataRow dr in tb.Rows) { var a = new aa(); colums.ForEach(p => a[p.ColumnName] = FormatData(dr[p.ColumnName], ts)); array[index++] = a; } return(array); }
//use to examine specific values at different Zs public void printZ() { foreach (aa[] strand in simpleBarrel) { bool first = true; aa previousAA = strand[0]; int strandNum = 0; foreach (aa amino in strand) { if (!first) { if (amino.height > -zone && amino.height < zone && previousAA.height > -zone && previousAA.height < zone) { if (amino.mPolarity == 'P' || amino.mPolarity == 'Q') { ZP[(int)Math.Floor(amino.height) + Convert.ToInt16(zone)]++; } if (amino.mPolarity == 'N' || amino.mPolarity == 'Q') { ZN[(int)Math.Floor(amino.height) + Convert.ToInt16(zone)]++; } if (amino.mPolarity == 'P' && previousAA.mPolarity == 'P')// || previousAA.mPolarity == 'Q' || amino.mPolarity == 'Q') { examineZP[(int)Math.Floor(amino.height) + Convert.ToInt16(zone)]++; } else if (amino.mPolarity == 'N' && previousAA.mPolarity == 'N')// || previousAA.mPolarity == 'Q' || amino.mPolarity == 'Q') { examineZN[(int)Math.Floor(amino.height) + Convert.ToInt16(zone)]++; } else { } } strandNum++; } first = false; previousAA = amino; } } }
private static bool f(aa A_0) { while (A_0.c.c()) { int num = A_0.c.h; if (num == 39) { A_0.c.a(); A_0.a = true; A_0.b = 24; return(true); } if (num == 92) { A_0.d = 23; A_0.b = 21; return(true); } A_0.c.k.Append((char)A_0.c.h); } return(true); }
/// <summary> /// /// </summary> /// <param name="tb"></param> /// <param name="ts"></param> /// <returns></returns> public static object GetTopOneDataTableObjectHasColum(this System.Data.DataTable tb, long ts = 1000) { if (tb.Rows.Count <= 0) { return(EmptyDictionaryArray); } var colums = tb.Columns.Cast <System.Data.DataColumn>().ToArray(); var array = new aa(); if (tb.Rows.Count <= 0) { return(null); } System.Data.DataRow dr = tb.Rows[0]; { colums.ForEach(p => array[p.ColumnName] = FormatData(dr[p.ColumnName], ts)); } return(array); }