Ejemplo n.º 1
0
 private void Form1_Load(object sender, EventArgs e)
 {
     Protein.Enzyme.Repository.ProteinHandler ph = new Protein.Enzyme.Repository.ProteinHandler();
     //this.entityfactory.TypeAdapter.SetNextEntityType(new UserAdapter());
     ph.SetEntityTypeAdapter <ILHTDZS_ManagerUser, LHTDZS_ManagerUser>();
     this.entityfactory = MachineEntityHandler.GetEntityFactory();
 }
Ejemplo n.º 2
0
        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);
        }
Ejemplo n.º 3
0
        /// <summary>
        /// 数据操作入口
        /// </summary>
        public DalHandler()
        {
            ProteinHandler ph = new ProteinHandler();

            this.EntityFact = ph.GetEntityFactory();
        }