Exemple #1
0
        void Update()
        {
            //tr1y
            //{
            if (grdStock.RowCount > 0)
            {
                if (grdStock.FocusedRowHandle != -1 && !string.IsNullOrEmpty(grdStock.GetFocusedRowCellValue("Ref").ToString()))
                {
                    FrmStokCard newForm = new FrmStokCard();
                    newForm._Ref     = int.Parse(grdStock.GetFocusedRowCellValue("Ref").ToString());
                    newForm._MenuNo  = this._MenuNo;
                    newForm._FormMod = Enums.enmFormMod.Guncelle;
                    newForm.Text     = grdStock.GetFocusedRowCellValue("Stok Kodu").ToString() + " adlı Stok Kartı";
                    f.Viewchild(newForm);
                    if (newForm.DialogResult == DialogResult.OK)
                    {
                        FillData();
                    }
                }
            }


            //}
            //catch (Exception)
            //{
            //}
        }
Exemple #2
0
        void Add()
        {
            FrmStokCard newForm = new FrmStokCard();

            newForm._Ref     = 0;
            newForm._FormMod = Enums.enmFormMod.Yeni;
            newForm.Text     = "Yeni Stok Kartı";

            newForm.MdiParent = FrmErpMain.ActiveForm;
            newForm.Show();

            if (newForm.DialogResult == DialogResult.OK)
            {
                FillData();
            }
        }
Exemple #3
0
 void Show()
 {
     try
     {
         if (grdStock.RowCount > 0)
         {
             if (grdStock.FocusedRowHandle != -1 && !string.IsNullOrEmpty(grdStock.GetFocusedRowCellValue("Ref").ToString()))
             {
                 FrmStokCard newForm = new FrmStokCard();
                 newForm._Ref     = int.Parse(grdStock.GetFocusedRowCellValue("Ref").ToString());
                 newForm._MenuNo  = this._MenuNo;
                 newForm._FormMod = Enums.enmFormMod.Goruntule;
                 newForm.ShowDialog();
             }
         }
     }
     catch (Exception)
     {
     }
 }