Beispiel #1
0
        private void xapFormControl_AfterFocused(object sender, DataFocusedEventArgs e)
        {
            var oc = e.Data as OrConfirm;

            if (oc != null)
            {
                if (or == null || (or != null && or.Id_confirm != oc.Id_confirm))
                {
                    if (model.IsDrugEdit() && !flag)
                    {
                        if (MessageBoxEx.Show("是否保存修改?", "提示", MessageBoxButtons.YesNo) !=
                            DialogResult.No)
                        {
                            save();
                        }
                        flag = true;
                        //    xapFormControl.CloseTiol(flag);
                        model.AddFeeDTOList.Clear();
                    }
                    else
                    {
                        flag = true;
                        //      xapFormControl.CloseTiol(flag);
                        model.AddFeeDTOList.Clear();
                    }

                    model.GetFeeList(oc);
                    gv_cost.DataTable.DataSource = model.AddFeeDTOList;
                    or = oc;
                    setFeeEditable(false);
                }
            }
        }
Beispiel #2
0
        void xapFormControl_AfterFocused(object sender, DataFocusedEventArgs e)
        {
            consDto = this.xapFormControl.GetSelected <OrdConsDTO>()[0];

            if (consDto.Sd_su_cons == CiDictCodeConst.SD_CIDI_DYWSP)
            {
                btnAgree.Enabled = true;
            }
            else
            {
                btnAgree.Enabled = false;
            }
            consDto.Fg_audit = true;
            this.FireSelected(consDto);
        }
Beispiel #3
0
        private void xapFormControl_AfterFocused(object sender, DataFocusedEventArgs e)
        {
            CiordubDTO dto = e.Data as CiordubDTO;


            dto.Id_route     = this.uidto.MedSrvDO.Id_route;
            dto.Quan_medu_ub = dto.Num_margin_bu;
            if (this.uidto.CiordubDTO == null)
            {
                this.uidto.CiordubDTO = new CiordubDTO();
            }
            this._model.Copy(dto, this.uidto.CiordubDTO);
            if (this.uidto.CiordubDTO != null)
            {
                FireSelected(this.uidto.CiordubDTO);
            }
        }
Beispiel #4
0
        private void xapFormControl1_AfterFocused(object sender, DataFocusedEventArgs e)
        {
            if (e.Data is CiOrderDO)
            {
                var ordDO = e.Data as CiOrderDO;
                switch (ordDO.Sd_su_or)
                {
                //开立
                case CiDictCodeConst.SD_SU_OPEN:
                    this.SenMgs(CiDictCodeConst.SD_SU_OPEN);
                    break;

                //已签署
                case CiDictCodeConst.SD_SU_SIGN:
                    this.SenMgs(CiDictCodeConst.SD_SU_SIGN);
                    break;
                }
            }
        }
Beispiel #5
0
        void xapFormControl_AfterFocused(object sender, DataFocusedEventArgs e)
        {
            consDto = this.xapFormControl.GetSelected <OrdConsDTO>()[0];

            CiordInviteConsDO inviteConsDo = this.model.btnEnable(consDto.Id_apcons);

            if (inviteConsDo == null)
            {
                return;
            }
            if (inviteConsDo.Fg_response == false)
            {
                this.btnAgree.Enabled = true;
            }
            else
            {
                this.btnAgree.Enabled = false;
            }
            consDto.Fg_audit = true;
            this.FireSelected(this.model.GetApConsById(consDto));
        }
Beispiel #6
0
 protected virtual void OnXapFormControl_DataDbClick(object sender, DataFocusedEventArgs e)
 {
     this.FireSelected(gv.GetFocusedRow().RowDataSource);
 }