コード例 #1
0
        /// <summary>
        /// 刷新业务显示面板
        /// </summary>
        private void RefreshPanel()
        {
            int rowHandle = int.MinValue;

            //守灵厅!
            rowHandle = gridView1.LocateByValue("SA002", "01");
            if (rowHandle >= 0)
            {
                lookup_store.EditValue = gridView1.GetRowCellValue(rowHandle, "SA004");
            }
            //冷藏柜
            rowHandle = gridView1.LocateByValue("SA002", "02");
            if (rowHandle >= 0)
            {
                lookup_store.EditValue = gridView1.GetRowCellValue(rowHandle, "SA004");
            }
            //休息室
            txtedit_xxs.EditValue = FireAction.GetRestRoomList(AC001);

            //告别厅
            rowHandle = gridView1.LocateByValue("SA002", "04");
            if (rowHandle >= 0)
            {
                lookUp_gbt.EditValue = gridView1.GetRowCellValue(rowHandle, "SA004");
            }

            //告别时间
            txtedit_ac018.EditValue = FireAction.GetGBTime(AC001);
            //火化时间
            txtedit_ac015.EditValue = FireAction.GetHHTime(AC001);
        }
コード例 #2
0
        /// <summary>
        /// 刷新业务显示面板
        /// </summary>
        private void RefreshPanel()
        {
            int rowHandle = int.MinValue;

            //存放位置
            lookup_store.EditValue = FireAction.GetFireStoreId(AC001);

            //休息室
            txtedit_xxs.EditValue = FireAction.GetRestRoomList(AC001);

            //告别厅
            rowHandle = gridView1.LocateByValue("SA002", "04");
            if (rowHandle >= 0)
            {
                lookUp_gbt.EditValue = gridView1.GetRowCellValue(rowHandle, "SA004");
            }

            //告别时间
            txtedit_ac018.EditValue = FireAction.GetGBTime(AC001);
            //火化时间
            txtedit_ac015.EditValue = FireAction.GetHHTime(AC001);


            ///计算项目金额汇总
            decimal dec_tax = new decimal(0);
            decimal dec_fin = new decimal(0);

            foreach (DataRow dr in business_ds.Sa01.Rows)
            {
                if (dr["SA020"].ToString() == "T")
                {
                    if (!(dr["SA007"] is DBNull))
                    {
                        dec_tax += Convert.ToDecimal(dr["SA007"]);
                    }
                }
                else if (dr["SA020"].ToString() == "F")
                {
                    if (!(dr["SA007"] is DBNull))
                    {
                        dec_fin += Convert.ToDecimal(dr["SA007"]);
                    }
                }
            }

            te_fin.Text = dec_fin.ToString("##,##0.00");
            te_tax.Text = dec_tax.ToString("##,##0.00");
        }
コード例 #3
0
        /// <summary>
        /// 设置信息面板显示
        /// </summary>
        private void SetActivePanel()
        {
            txtedit_ac003.EditValue = ac01.AC003;              //逝者姓名
            txtedit_ac004.EditValue = ac01.AC004;              //年龄
            rg_ac002.EditValue      = ac01.AC002;              //性别
            txtedit_ac020.EditValue = ac01.AC020;              //到达中心时间
            txtedit_ac050.EditValue = ac01.AC050;              //联系人
            txtedit_ac051.EditValue = ac01.AC051;              //电话
            txtedit_ac052.Text      = ac01.AC052;              //与逝者关系
            txtedit_ac006.EditValue = ac01.AC006;              //骨灰处理方式

            this.Parent.Text = "火化业务办理" + "【" + ac01.AC003 + "】" + "(" + ac01.AC001 + ")";

            te_position.Text        = FireAction.GetGuyPosition(s_ac001);
            te_gbt.Text             = FireAction.GetGBT(s_ac001);
            txtedit_ac018.EditValue = ac01.AC018;
            txtedit_ac015.EditValue = ac01.AC015;
            te_hhl.Text             = FireAction.GetHHL(s_ac001);
            txtedit_xxs.Text        = FireAction.GetRestRoomList(s_ac001);

            //判断是否办理寄存业务
            if (gridView1.LocateByValue("SA002", "08") >= 0)
            {
                te_pos.Text = RegAction.GetRegPosition(s_ac001);
            }
            else
            {
                te_pos.Text = "";
            }

            decimal dec_yjs = decimal.Zero;
            decimal dec_wjs = decimal.Zero;

            for (int i = 0; i < gridView1.RowCount; i++)
            {
                if (gridView1.GetRowCellValue(i, "SA008").ToString() == "1")
                {
                    dec_yjs += Convert.ToDecimal(gridView1.GetRowCellValue(i, "SA007"));
                }
                else
                {
                    dec_wjs += Convert.ToDecimal(gridView1.GetRowCellValue(i, "SA007"));
                }
            }

            te_yjs.Text = dec_yjs.ToString("##,##0.00");
            te_wjs.Text = dec_wjs.ToString("##,##0.00");
        }