/// <summary> /// 加载数据 /// </summary> protected virtual void LoadData() { this.LogList.Clear(); DalHandler dh = new DalHandler(); ProteinLog plog = new ProteinLog(); this.LogList = dh.QueryAll <ProteinLog>(plog); this.LogList.Sort(SortOrderTime); this.fToolStripMenuItem.Enabled = true; this.lToolStripMenuItem.Enabled = true; this.nToolStripMenuItem1.Enabled = true; this.eToolStripMenuItem.Enabled = true; }
private void button2_Click(object sender, EventArgs e) { //ProteinHandler ph = new ProteinHandler(); //Itesta aa = ph.ExtendConfig<Itesta>(); //$$$$$$$$$$ //string filename = System.Windows.Forms.Application.StartupPath+"\\testa.xml"; //string filename1 = System.Windows.Forms.Application.StartupPath + "\\testa2.xml"; //XmlSerializer xs = new XmlSerializer(typeof(testa)); //Itesta aa = (Itesta)xs.Deserialize(File.OpenRead(filename)); //Itesta bb = new testa(); //bb.aaad = new rsfc(); //bb.aaad.ti = DateTime.Now; //bb.a1="rsfc"; //bb.a3=123; //bb.a4 = "aaa"; ////XmlWriter xw=new //xs.Serialize(File.Create(filename1), bb); //CustomErrorsSection customerrors = systemWeb.CustomErrors; string aa = EncryptDES("张某某", "SuperMap"); string bb = DecryptDES(aa, "SuperMap"); string cc = Compress("张某某"); string ggg = "211481218212张某某"; int a = ggg.GetHashCode(); Protein.Enzyme.Repository.ProteinHandler ph = new Protein.Enzyme.Repository.ProteinHandler(); ph.SetEntityTypeAdapter <ILHTDZS_XZQH, LHTDZS_XZQH>(); ph.SetEntityTypeAdapter <ILHTDZS_ManagerUser, LHTDZS_ManagerUser>(); ph.SetEntityTypeAdapter <ILHTDZS_SZDBCJL, LHTDZS_SZDBCJL>(); DalHandler dl = new DalHandler(); ILHTDZS_SZDBCJL enty = dl.DalCreateEntityInstance <ILHTDZS_SZDBCJL>(); enty.BuChangBianHao = @"21148121821200001"; int i = dl.RemoveEntityData(enty, "BuChangBianHao", Protein.Enzyme.DAL.Operator.Deng, Protein.Enzyme.DAL.LinkOperator.nul); }