示例#1
0
 private void item_Click(object sender, EventArgs e)
 {
     string SaleAppHeadId = LvHead.SelectedItems[0].SubItems[0].Text;
     SalePos7CSK.frmSalePos7CSK frmSale = new SalePos7CSK.frmSalePos7CSK();
     frmSale.StartPosition = FormStartPosition.CenterScreen;
     frmSale.Text = "หน้าจอขาย";
     frmSale.txtSaleAppHeadId.Text = SaleAppHeadId;
     frmSale.ShowDialog();
 }
示例#2
0
 private void toolStripButton6_Click(object sender, EventArgs e)
 {
     if(dataGridView1.CurrentRow.Cells[10].Value.ToString()=="ขายแล้ว"){
         MessageBox.Show("ใบเบิกที่เลือก ได้ถูกขายไปแล้ว");
         return;
     }
     string SaleAppHeadId = (dataGridView1.CurrentRow.Cells[1].Value.ToString() == "-") ? dataGridView1.CurrentRow.Cells[2].Value.ToString() : dataGridView1.CurrentRow.Cells[1].Value.ToString();
     SalePos7CSK.frmSalePos7CSK frmSale = new SalePos7CSK.frmSalePos7CSK();
     frmSale.StartPosition = FormStartPosition.CenterScreen;
     frmSale.Text = "หน้าจอขาย";
     frmSale.txtSaleAppHeadId.Text = SaleAppHeadId;
     frmSale.ShowDialog();
 }
 private void toolStripButton6_Click(object sender, EventArgs e)
 {
     string SaleAppHeadId = (dataGridView1.CurrentRow.Cells[1].Value.ToString() == "-") ? dataGridView1.CurrentRow.Cells[2].Value.ToString() : dataGridView1.CurrentRow.Cells[1].Value.ToString();
     SalePos7CSK.frmSalePos7CSK frmSale = new SalePos7CSK.frmSalePos7CSK();
     frmSale.StartPosition = FormStartPosition.CenterScreen;
     frmSale.Text = "หน้าจอขาย";
     frmSale.txtSaleAppHeadId.Text = SaleAppHeadId;
     frmSale.ShowDialog();
 }