Exemple #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);
        }
Exemple #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");
        }