Beispiel #1
0
        void selRow()
        {
            if (dgvData.CurrentCell != null && dgvData.CurrentCell.RowIndex >= 0)
            {
                var rowe = dgvData.CurrentCell.RowInfo;
                idCustomerPO = rowe.Cells["idCustomerPO"].Value.ToInt();

                if (dgvData.CurrentCell.ColumnInfo.Name.Equals("JobNo"))
                {
                    string jobNo = rowe.Cells["JobNo"].Value.ToSt();
                    if (!baseClass.Question("Do you want to open 'Job Order sheet' ?"))
                    {
                        return;
                    }
                    var m = new ProductionOrder(jobNo);
                    m.ShowDialog();
                    DataLoad();
                }
                else
                {
                    if (sType == 1)
                    {
                        var p = new CustomerPO(idCustomerPO);
                        p.ShowDialog();
                        DataLoad();
                    }
                    else
                    {
                        this.Close();
                    }
                }
            }
        }
Beispiel #2
0
        void EditItem()
        {
            if (dgvData.CurrentCell == null)
            {
                return;
            }
            int idCustomerPO = dgvData.CurrentCell.RowInfo.Cells["idCustomerPO"].Value.ToInt();

            CustomerPO c = new CustomerPO(idCustomerPO);

            c.ShowDialog();
            DataLoad();
        }
Beispiel #3
0
 private void radButtonElement1_Click(object sender, EventArgs e)
 {
     //select Item
     if (sType == 1)
     {
         var t = new CustomerPO();
         t.ShowDialog();
     }
     else
     {
         selRow();
     }
 }