示例#1
0
        private void button3_Click(object sender, EventArgs e)
        {
            In_certi op = new In_certi();

            op.Show();
            this.Hide();
        }
示例#2
0
        private void bunifuFlatButton1_Click(object sender, EventArgs e)
        {
            In_certi open = new In_certi();

            open.SetUserType(UserType);
            //open.UserType = UserType;
            open.Show();
        }
示例#3
0
        private void invoice_Certificate1_CellDoubleClick(object sender, DataGridViewCellEventArgs e)
        {
            Match  m             = Regex.Match(invoice_Certificate1.CurrentRow.Cells[0].Value.ToString(), "CMB-([0-9]{3})-([A-Za-z]{2})");
            string invoiceType   = m.Groups[2].Value.ToString();
            string invoiceNumber = m.Groups[1].Value.ToString();

            In_certi inc = new In_certi();

            inc.SetUserType(UserType);
            inc.button3.Visible = false;
            inc.LoadInvoice(invoiceNumber, invoiceType);
            inc.btnPrntInvoice.Enabled = true;
            inc.PrntInPre.Enabled      = true;



            //  inc.cmbTitle.Text = this.invoice_Certificate1.CurrentRow.Cells[0].Value.ToString();
            //inc.txtCusNm.Text = this.invoice_Certificate1.CurrentRow.Cells[1].Value.ToString();


            inc.InvUpdate.Visible = true;
            inc.ShowDialog();


            /*    inc.txt_qty.Text = "1";
             *
             *  myFormg.combo_itemk_description.Text = this.dataGridView1.CurrentRow.Cells[2].Value.ToString();
             *  myFormg.combo_item_type.Text = this.dataGridView1.CurrentRow.Cells[3].Value.ToString();
             *  myFormg.txt_no_of_gems.Text = this.dataGridView1.CurrentRow.Cells[4].Value.ToString();
             *  myFormg.txt_gem_type.Text = this.dataGridView1.CurrentRow.Cells[5].Value.ToString();
             *  myFormg.txt_gem_weight.Text = this.dataGridView1.CurrentRow.Cells[6].Value.ToString();
             *  myFormg.txt_cost.Text = this.dataGridView1.CurrentRow.Cells[7].Value.ToString();
             *
             *  myFormg.txt_no_of_other_gems.Text = this.dataGridView1.CurrentRow.Cells[13].Value.ToString();
             *  myFormg.txt_other_gems.Text = this.dataGridView1.CurrentRow.Cells[14].Value.ToString();
             *  myFormg.txt_weight_of_other_gems.Text = this.dataGridView1.CurrentRow.Cells[15].Value.ToString();
             *
             *  //   myFormg.cmbStockType.Enabled = false;
             *  //  myFormg.txtstock_no.Enabled = false;
             *
             *  using (var cmd = new SqlCommand("SELECT Image FROM Stock_Entry WHERE Stock_ID=@Stock_ID AND Stock_No= @Stock_No", conn))
             *  {
             *      cmd.Parameters.AddWithValue("Stock_ID", stockId);
             *      cmd.Parameters.AddWithValue("Stock_No", stockNo);
             *      using (var Reader = cmd.ExecuteReader())
             *      {
             *          if (Reader.Read())
             *          {
             *              MemoryStream ms = new MemoryStream(Reader["Image"] as byte[]);
             *              myFormg.pb1.Image = Image.FromStream(ms);
             *          }
             *
             *      }
             *  }*/
            //inc.ShowDialog();
        }