Пример #1
0
        private void button1_Click(object sender, EventArgs e)
        {
            Accessor accessor = Accessor.Instance;
            assetimformation ainformation = new assetimformation
            {

                name = this.textBox1.Text,
                buydate = this.textBox2.Text,
                sort = this.comboBox1.Text,
                amount = Convert.ToInt32(this.textBox3.Text),
                price = Convert.ToInt32(this.textBox4.Text),
                safedepartment = this.textBox5.Text,
                safeplace = this.textBox6.Text,
                usedepatment = this.textBox7.Text ,
                depreciation = this.textBox8.Text
            };
            accessor.Createassetimformation(ainformation);
            this.label10.Text = "资产信息已经成功保存";
        }
Пример #2
0
 //删除表格信息
 public void Deleteassetdelete(assetimformation aimformation)
 {
     session.Delete(aimformation);
     session.Flush();
 }
Пример #3
0
 //保存表格assetdelete信息
 public void Createassetimformation(assetimformation aimformation)
 {
     session.Save(aimformation);
     session.Flush();
 }
Пример #4
0
 public void Createassetimformation(assetimformation aimformation) //保存表格assetdelete信息
 {
     session.Save(aimformation);
     session.Flush();
 }
Пример #5
0
 public void Updateassetdelete(assetimformation aimformation) //更新表格信息
 {
     session.Update(aimformation);
     session.Flush();
 }
Пример #6
0
 public void Deleteassetdelete(assetimformation aimformation) //删除表格信息
 {
     session.Delete(aimformation);
     session.Flush();
 }