Example #1
0
        private void tabControl_DataDisplay(Object sender, XDataDisplayEventArgs e)
        {
            var row = sender as XDataRow;

            OrderConfirmUtils.OrContentDisplay(row);

            if (row != null && row.ColumnCellDict.ContainsKey("customercolumn_addfeecell"))
            {
                (row.ColumnCellDict["customercolumn_addfeecell"] as XCellRender).Value = "";
            }
        }
Example #2
0
        public AddFeeDTO getEmsdrug(AddFeeDTO fee, OrConfirm or)
        {
            var       dto = getwfparam(fee, or);
            AddFeeDTO dgs = qryservice.getEmsfee(fee, dto);

            OrderConfirmUtils.copydrug(fee, dgs);
            //fee = qryservice.getEmsfee(fee, dto);
            //fee.SetUpdated();
            fee.Amt_cur = fee.Price * fee.Quan_med;
            return(fee);
        }
Example #3
0
 public void OnCancel()
 {
     if (feeview != null)
     {
         if (feeview.IsCancel())
         {
             if (!this.IsContinue("提示", "费用页签有修改,是否继续?"))
             {
                 return;
             }
         }
     }
     addfeeflag = false;
     if (oldrow != null && oldrow.ColumnCellDict.ContainsKey("customercolumn_addfeecell"))
     {
         oldrow.UserForeColor = Color.Black;
         (oldrow.ColumnCellDict["customercolumn_addfeecell"] as XCellRender).Value = "";
     }
     this.FireSelected(OrderConfirmUtils.GetConfirmEvent("uneditable"));
     if (feeview != null)
     {
         feeview.CancelFee();
     }
 }
Example #4
0
        private void addfee()
        {
            if (feeview != null)
            {
                if (feeview.IsCancel())
                {
                    if (!this.IsContinue("提示", "费用页签有修改,是否继续?"))
                    {
                        return;
                    }
                }
            }

            //    XDataRow xor = gv_or.DataTable.SelectedRows[gv_or.SelectedRowsCount - 1];
            XDataRow xor = this.gv_or.DataTable.FocusedRow;

            if (xor == null)
            {
                return;
            }
            var or = xor.RowDataSource as OrConfirm;

            if (or == null)
            {
                return;
            }
            or.Id_dep_nur = this.model.dto.Id_dep_nur;
            if (oldrow != null)
            {
                var confirm = oldrow.RowDataSource as OrConfirm;
                if (confirm != null)
                {
                    if (confirm.Id_confirm == or.Id_confirm && addfeeflag)
                    {
                        return;
                    }
                }
            }
            //              this.freq =this.model.GetDefDo(this.or.Id_freq);
            if (or.Fg_sign == FBoolean.True && or.Fg_chk == FBoolean.False) //已签署  展开
            {
                if (gv_or.DataTable.Rows.DataSourceRow.ContainsKey(or))
                {
                    gv_or.DataTable.Rows[model.OrderList.IndexOf(or)].Selected = true;
                }
                XDataRow doubleClickRow = gv_or.DataTable.Rows.DataSourceRow[or];

                if (oldrow != null)
                {
                    oldrow.BackColor     = Color.Empty;
                    oldrow.UserForeColor = Color.Black;
                    OrderConfirmUtils.SetDoctorCardColor(oldrow, Color.Black);
                    if (oldrow != null && oldrow.ColumnCellDict.ContainsKey("customercolumn_addfeecell"))
                    {
                        (oldrow.ColumnCellDict["customercolumn_addfeecell"] as XCellRender).Value = "";
                    }

                    //doubleClickRow.UserForeColor = Color.FromArgb(76, 76, 76);
                    doubleClickRow.UserForeColor = Color.Red;
                    OrderConfirmUtils.SetDoctorCardColor(doubleClickRow, Color.Red);
                    if (doubleClickRow != null && doubleClickRow.ColumnCellDict.ContainsKey("customercolumn_addfeecell"))
                    {
                        (doubleClickRow.ColumnCellDict["customercolumn_addfeecell"] as XCellRender).Value = "补费中";
                    }
                    oldrow = doubleClickRow;
                }
                else
                {
                    //  doubleClickRow.UserForeColor = Color.FromArgb(76, 76, 76);
                    doubleClickRow.UserForeColor = Color.Red;
                    OrderConfirmUtils.SetDoctorCardColor(doubleClickRow, Color.Red);
                    if (doubleClickRow != null && doubleClickRow.ColumnCellDict.ContainsKey("customercolumn_addfeecell"))
                    {
                        (doubleClickRow.ColumnCellDict["customercolumn_addfeecell"] as XCellRender).Value = "补费中";
                    }
                    oldrow = doubleClickRow;
                }

                FireSelected(or);
                this.FireSelected(OrderConfirmUtils.GetConfirmEvent("addfee"));
                addfeeflag = true;
            }
            else
            {
                //if (gv_or.DataTable.Rows.DataSourceRow.ContainsKey(or))
                //{
                //    gv_or.DataTable.Rows[model.OrderList.IndexOf(or)].Selected = true;
                //}
                this.ShowAlert("非签署医嘱不能补费");

                //if (oldrow != null)
                //{
                //    oldrow.BackColor = Color.Empty;
                //    oldrow.UserForeColor = Color.Black;
                //    OrderConfirmUtils.SetDoctorCardColor(oldrow, Color.Black);
                //}
            }
        }