示例#1
0
        private void btn3_Click(object sender, EventArgs e)
        {
            switch (deptCode)
            {
            case "CM":
                this.Hide();
                WHStock stk = new WHStock(this);
                stk.Show();
                break;

            case "WC":
                this.Hide();
                WHStock wstk = new WHStock(this);
                wstk.Show();
                break;

            case "AD":
            case "PM":
            case "AM":
                this.Hide();
                SupplierMenu sm = new SupplierMenu(this);
                sm.Show();
                break;
            }
        }
示例#2
0
 public EditSupp(String SNo, String SName, String SContact, String SAddress, SupplierMenu m)
 {
     InitializeComponent();
     this.m        = m;
     this.SNo      = SNo;
     this.SName    = SName;
     this.SContact = SContact;
     this.SAddress = SAddress;
     setData();
 }
        public CreateSupp(String SNo, SupplierMenu m)
        {
            InitializeComponent();
            this.m = m;
            int sid;

            SNo       = Regex.Match(SNo, @"\d+").Value;
            sid       = Int32.Parse(SNo);
            sid      += 1;
            SNo       = "S" + sid.ToString().PadLeft(3, '0');
            tbNo.Text = SNo;
        }