예제 #1
0
        private void رسیدانبارToolStripMenuItem_Click(object sender, EventArgs e)
        {
            ResidFrm f2 = new ResidFrm();

            f2.FormClosing += f2_FormClosing;
            add(f2, " رسید انبار ");
        }
예제 #2
0
        public void Save(ResidFrm view)
        {
            this.SerialNumber = view.Number;
            person p = new person();

            this.Person      = p.Find(view.Customer);
            this.Date        = view.Date;
            this.Refrence    = view.Refrence;
            this.Description = view.Description;
            this.Type        = factorType.resid;
            this.User.Name   = view.Name;
            good g = new good();

            for (int i = 0; i < view.Goods.Count; i++)
            {
                g.Name        = view.Goods[i].Name;
                g.Price       = view.Goods[i].Price;
                g.Anbar.Name  = view.Goods[i].Anbar.Name;
                g.Unit        = view.Goods[i].Unit;
                g.Description = view.Goods[i].Description;
                this.Goods.Add(g);
            }
            db.resids.Add(this);
            p = null;
            g = null;
        }
예제 #3
0
 public residController(ResidFrm residform)
 {
     view = residform;
 }