Esempio n. 1
0
        private void btnAddNewCustomer_ItemClick(object sender, DevExpress.XtraBars.ItemClickEventArgs e)
        {
            if (!MspTool.PermissionControl(AppMain.User.username, SecRightType.Insert, (int)DocumentType.KasaHareketi, AppMain.CompanyRecId))
            {
                return;
            }
            frmKasaHareketi frm = new frmKasaHareketi();

            frm._FormOpenType = Infrastructure.FormOpenType.New;
            frm.Show(0);
        }
Esempio n. 2
0
        public void do_edit()
        {
            if (!MspTool.PermissionControl(AppMain.User.username, SecRightType.Update, (int)DocumentType.KasaHareketi, AppMain.CompanyRecId))
            {
                return;
            }
            var oRow = (CaseMovementDTO)gridView1.GetFocusedRow();

            if (oRow != null)
            {
                frmKasaHareketi frm = new frmKasaHareketi();
                frm._FormOpenType = FormOpenType.Edit;
                frm.Show(oRow.RecId);
            }
        }