Ejemplo n.º 1
0
        private void txt_bar_KeyPress(object sender, KeyPressEventArgs e)
        {
            ComInfo.onlyNum(sender, e);

            if (txt_bar.Text.Length == 13)
            {
            }
        }
Ejemplo n.º 2
0
        private void cmb_raw_KeyPress(object sender, KeyPressEventArgs e)
        {
            ComInfo.onlyNum(sender, e);

            //if (cmb_raw.Text.Length >= 14)
            //{
            //    StringBuilder sb = new StringBuilder();
            //    sb.AppendLine(" and CONVERT(NVARCHAR(8),CONVERT (DATE, A.INPUT_DATE),112) ");
            //    sb.AppendLine(" +RIGHT('000'+CONVERT(varchar,A.INPUT_CD),4) ");
            //    sb.AppendLine(" +RIGHT('0'+CONVERT(varchar,A.SEQ),2) = '"+cmb_raw.Text.ToString() +"' ");

            //    in_rm_ledger_logic(sb.ToString());
            //}
        }
 private void txtCheckNumeric_KeyPress(object sender, KeyPressEventArgs e)
 {
     ComInfo.onlyNum(sender, e);
 }
Ejemplo n.º 4
0
 private void txt_conver_ratio_KeyPress(object sender, KeyPressEventArgs e)
 {
     ComInfo.onlyNum(sender, e);
 }
Ejemplo n.º 5
0
 private void txt_input_price_KeyPress(object sender, KeyPressEventArgs e)
 {
     ComInfo.onlyNum(sender, e);
 }
 private void txt_chk_ord_KeyPress(object sender, KeyPressEventArgs e)
 {
     ComInfo.onlyNum(sender, e);
 }
 private void txt_measure_cnt_KeyPress(object sender, KeyPressEventArgs e)
 {
     ComInfo.onlyNum(sender, e);
 }
Ejemplo n.º 8
0
 private void conTextBox3_KeyPress(object sender, KeyPressEventArgs e)
 {
     ComInfo.onlyNum(sender, e);
 }
 private void final_pass_amt_KeyPress(object sender, KeyPressEventArgs e)
 {
     ComInfo.onlyNum(sender, e);
 }
 private void upd_com_amt_KeyPress(object sender, KeyPressEventArgs e)
 {
     ComInfo.onlyNum(sender, e);
 }
 private void chk_total_amt_KeyPress(object sender, KeyPressEventArgs e)
 {
     ComInfo.onlyNum(sender, e);
 }
Ejemplo n.º 12
0
 private void txtCheckNumeric_KeyPress(object sender, KeyPressEventArgs e)
 {
     ComInfo.onlyNum(sender, e);
     //if (!(char.IsDigit(e.KeyChar) || e.KeyChar == Convert.ToChar(Keys.Back)))
     //    e.Handled = true;
 }
 private void txt_power_num_KeyPress(object sender, KeyPressEventArgs e)
 {
     ComInfo.onlyNum(sender, e);
 }
        private void txt_bar_KeyPress(object sender, KeyPressEventArgs e)
        {
            ComInfo.onlyNum(sender, e);

            if (txt_bar.Text.Length >= 10)
            {
                if (itemStockGrid.Rows.Count > 0)
                {
                    for (int i = 0; i < itemStockGrid.Rows.Count; i++)
                    {
                        string lotno  = itemStockGrid.Rows[i].Cells["LOT_NO"].Value.ToString();
                        string lotsub = int.Parse(itemStockGrid.Rows[i].Cells["LOT_SUB"].Value.ToString()).ToString("000");

                        if (txt_bar.Text.ToString().Equals(lotno + lotsub))
                        {
                            for (int j = 0; j < itemOutGrid.Rows.Count; j++)
                            {
                                if ((string)itemStockGrid.Rows[i].Cells["LOT_NO"].Value == (string)itemOutGrid.Rows[j].Cells["O_LOT_NO"].Value &&
                                    (string)itemStockGrid.Rows[i].Cells["LOT_SUB"].Value == (string)itemOutGrid.Rows[j].Cells["O_LOT_SUB"].Value)
                                {
                                    MessageBox.Show("해당 출고할 제품이 이미 등록되어있습니다.");
                                    return;
                                }
                            }

                            for (int k = 0; k < del_outGrid.Rows.Count; k++)
                            {
                                if ((string)itemStockGrid.Rows[i].Cells["LOT_NO"].Value == (string)del_outGrid.Rows[k].Cells["O_LOT_NO"].Value &&
                                    (string)itemStockGrid.Rows[i].Cells["LOT_SUB"].Value == (string)del_outGrid.Rows[k].Cells["O_LOT_SUB"].Value)
                                {
                                    MessageBox.Show("해당 제품출고의 삭제데이터가 있어서 등록이 불가합니다.");
                                    return;
                                }
                            }

                            itemOutGrid.Rows.Add();
                            int rowNum = itemOutGrid.Rows.Count - 1;
                            itemOutGrid.Rows[rowNum].Cells["O_LOT_NO"].Value    = itemStockGrid.Rows[i].Cells["LOT_NO"].Value;
                            itemOutGrid.Rows[rowNum].Cells["O_LOT_SUB"].Value   = itemStockGrid.Rows[i].Cells["LOT_SUB"].Value;
                            itemOutGrid.Rows[rowNum].Cells["O_ITEM_CD"].Value   = itemStockGrid.Rows[i].Cells["ITEM_CD"].Value;
                            itemOutGrid.Rows[rowNum].Cells["O_ITEM_NM"].Value   = itemStockGrid.Rows[i].Cells["ITEM_NM"].Value;
                            itemOutGrid.Rows[rowNum].Cells["OUTPUT_AMT"].Value  = itemStockGrid.Rows[i].Cells["STOCK_AMT"].Value;
                            itemOutGrid.Rows[rowNum].Cells["O_SPEC"].Value      = itemStockGrid.Rows[i].Cells["SPEC"].Value;
                            itemOutGrid.Rows[rowNum].Cells["PRICE"].Value       = itemStockGrid.Rows[i].Cells["OUTPUT_PRICE"].Value;
                            itemOutGrid.Rows[rowNum].Cells["O_UNIT_CD"].Value   = itemStockGrid.Rows[i].Cells["UNIT_CD"].Value;
                            itemOutGrid.Rows[rowNum].Cells["O_UNIT_NM"].Value   = itemStockGrid.Rows[i].Cells["UNIT_NM"].Value;
                            itemOutGrid.Rows[rowNum].Cells["OLD_OUT_AMT"].Value = itemStockGrid.Rows[i].Cells["STOCK_AMT"].Value;
                            double total_money = double.Parse(itemStockGrid.Rows[i].Cells["STOCK_AMT"].Value.ToString()) * double.Parse(itemStockGrid.Rows[i].Cells["OUTPUT_PRICE"].Value.ToString());
                            itemOutGrid.Rows[rowNum].Cells["TOTAL_MONEY"].Value = total_money.ToString("#,0.######");

                            itemOutGrid.Rows[rowNum].Cells["O_INPUT_DATE"].Value = itemStockGrid.Rows[i].Cells["INPUT_DATE"].Value;
                            itemOutGrid.Rows[rowNum].Cells["O_INPUT_CD"].Value   = itemStockGrid.Rows[i].Cells["INPUT_CD"].Value;
                            itemOutGrid.Rows[rowNum].Cells["O_CUST_CD"].Value    = itemStockGrid.Rows[i].Cells["CUST_CD"].Value;
                            itemOutGrid.Rows[rowNum].Cells["O_CUST_NM"].Value    = itemStockGrid.Rows[i].Cells["CUST_NM"].Value;
                            // chk = 1;
                            wConst.f_Calc_Price(itemOutGrid, rowNum, "OUTPUT_AMT", "PRICE");

                            txt_bar.Text = "";
                            break;
                        }
                    }
                }
                else
                {
                    MessageBox.Show("입고 데이터가 없습니다.");
                }
            }
        }
Ejemplo n.º 15
0
 private void txt_FixTime_KeyPress(object sender, KeyPressEventArgs e)
 {
     ComInfo.onlyNum(sender, e);
 }