예제 #1
0
        private void newPurchaseOrderToolStripMenuItem_Click(object sender, EventArgs e)
        {
            PODetailForm newPurchaseOrderForm = new PODetailForm();

            newPurchaseOrderForm.MdiParent = this;
            newPurchaseOrderForm.Show();
        }
예제 #2
0
 public POItemEntryForm(purposeType purpose, PODetailForm detailForm)
 {
     InitializeComponent();
     Purpose    = purpose;
     DetailForm = detailForm;
     if (purpose == purposeType.Add)
     {
         BtReturn.Text = "Add New Item";
         Text          = "A New Purchase Order Item Entry";
     }
     else
     {
         BtReturn.Text = "Return Changes";
         Text          = "Edit the Purchase Order Item";
     }
 }
예제 #3
0
        public POMasterForm(PODetailForm detailForm)
        {
            InitializeComponent();
            DetailForm = detailForm;
            List <RSAF_TYPE> listType = new List <RSAF_TYPE>();
            var a = new RsafDbContext();

            listType = a.RSAF_TYPE.ToList();
            a.Dispose();
            CxTYPE.DataSource    = listType;
            CxTYPE.DisplayMember = "TYPE";
            CxTYPE.ValueMember   = "TYPE_CODE";

            List <RSAF_SITE> listSite = new List <RSAF_SITE>();
            var b = new RsafDbContext();

            listSite = b.RSAF_SITE.ToList();
            b.Dispose();
            CxSITE.DataSource    = listSite;
            CxSITE.DisplayMember = "SITE";
            CxSITE.ValueMember   = "SITE_CODE";
        }