Exemplo n.º 1
0
        private void btnNew_ItemClick(object sender, DevExpress.XtraBars.ItemClickEventArgs e)
        {
            if (!MspTool.PermissionControl(AppMain.User.username, SecRightType.Insert, (int)DocumentType.Order, AppMain.CompanyRecId))
            {
                return;
            }
            OrderEdit frm = new OrderEdit();

            frm.MdiParent     = this.MdiParent;
            frm._FormOpenType = FormOpenType.New;
            frm.RecId         = 0;
            frm.OrderType     = orderType;
            frm.Show();
        }
Exemplo n.º 2
0
        private void bbi_View_ItemClick(object sender, DevExpress.XtraBars.ItemClickEventArgs e)
        {
            if (!MspTool.PermissionControl(AppMain.User.username, SecRightType.Preview, (int)DocumentType.Order, AppMain.CompanyRecId))
            {
                return;
            }
            OrderOwnerDTO oRow = (OrderOwnerDTO)gcv_OrderList.GetFocusedRow();

            if (oRow != null)
            {
                OrderEdit frm = new OrderEdit();
                frm.MdiParent     = this.MdiParent;
                frm._FormOpenType = FormOpenType.View;
                frm.RecId         = oRow.RecId;
                frm.OrderType     = orderType;
                frm.Show();
            }
        }
Exemplo n.º 3
0
        private void do_edit()
        {
            if (!MspTool.PermissionControl(AppMain.User.username, SecRightType.Update, (int)DocumentType.Order, AppMain.CompanyRecId))
            {
                return;
            }
            OrderOwnerDTO oRow = (OrderOwnerDTO)gcv_OrderList.GetFocusedRow();

            if (oRow.IrsaliyeId > 0)
            {
                XtraMessageBox.Show("Kayıt İrsaliyeleştirilmiştir. İşlem Yapılamaz. Ön İzleme ile açılabilir...", "Uyarı", MessageBoxButtons.OK, MessageBoxIcon.Information); return;
            }
            if (oRow != null)
            {
                OrderEdit frm = new OrderEdit();
                frm.MdiParent     = this.MdiParent;
                frm._FormOpenType = FormOpenType.Edit;
                frm.RecId         = oRow.RecId;
                frm.OrderType     = orderType;
                frm.Show();
            }
        }