|
@@ -745,6 +745,7 @@ namespace PTMedicalInsurance.Business
|
|
ExportObj.Add("rel_ttp_flag", frmReg.relTtpFlag);
|
|
ExportObj.Add("rel_ttp_flag", frmReg.relTtpFlag);
|
|
ExportObj.Add("mdtrt_grp_type", frmReg.mdtrtGrpType);
|
|
ExportObj.Add("mdtrt_grp_type", frmReg.mdtrtGrpType);
|
|
ExportObj.Add("iden_crit_falg", frmReg.dangerFlag);
|
|
ExportObj.Add("iden_crit_falg", frmReg.dangerFlag);
|
|
|
|
+ ExportObj.Add("setl_way", frmReg.psn_setlway);
|
|
|
|
|
|
if (!string.IsNullOrEmpty(Global.pat.ExpContent))
|
|
if (!string.IsNullOrEmpty(Global.pat.ExpContent))
|
|
{
|
|
{
|
|
@@ -765,17 +766,6 @@ namespace PTMedicalInsurance.Business
|
|
|
|
|
|
Global.pat.ExpContent = ExportObj.ToString();
|
|
Global.pat.ExpContent = ExportObj.ToString();
|
|
|
|
|
|
-
|
|
|
|
-
|
|
|
|
-
|
|
|
|
-
|
|
|
|
-
|
|
|
|
-
|
|
|
|
-
|
|
|
|
-
|
|
|
|
-
|
|
|
|
-
|
|
|
|
-
|
|
|
|
JObject joMdtrtinfo = new JObject();
|
|
JObject joMdtrtinfo = new JObject();
|
|
joMdtrtinfo.Add("psn_no", Global.pat.psn_no);
|
|
joMdtrtinfo.Add("psn_no", Global.pat.psn_no);
|
|
joMdtrtinfo.Add("insutype", Global.pat.insuType);
|
|
joMdtrtinfo.Add("insutype", Global.pat.insuType);
|
|
@@ -878,6 +868,26 @@ namespace PTMedicalInsurance.Business
|
|
InpatientRegistration frmReg = new InpatientRegistration();
|
|
InpatientRegistration frmReg = new InpatientRegistration();
|
|
frmReg.dblkcbxInsuranceType.Enabled = true;
|
|
frmReg.dblkcbxInsuranceType.Enabled = true;
|
|
|
|
|
|
|
|
+ string settlementWay = "01";
|
|
|
|
+ string local_dise = "";
|
|
|
|
+
|
|
|
|
+ if ((Global.pat.ExpContent != "") && (Global.pat.RYorCY == "2"))
|
|
|
|
+ {
|
|
|
|
+ JObject ExpContentObj = JObject.Parse(Global.pat.ExpContent);
|
|
|
|
+ frmReg.claTrtFlag = JsonHelper.getDestValue(ExpContentObj, "cla_trt_flag");
|
|
|
|
+
|
|
|
|
+ frmReg.traumaFlag = JsonHelper.getDestValue(ExpContentObj, "trum_flag");
|
|
|
|
+ frmReg.iptTypeCode = JsonHelper.getDestValue(ExpContentObj, "ipt_type");
|
|
|
|
+ frmReg.relTtpFlag = JsonHelper.getDestValue(ExpContentObj, "rel_ttp_flag");
|
|
|
|
+ frmReg.mdtrtGrpType = JsonHelper.getDestValue(ExpContentObj, "mdtrt_grp_type");
|
|
|
|
+ settlementWay = JsonHelper.getDestValue(ExpContentObj, "setl_way");
|
|
|
|
+ settlementWay = string.IsNullOrEmpty(settlementWay) ? "01" : settlementWay;
|
|
|
|
+
|
|
|
|
+ local_dise = JsonHelper.getDestValue(ExpContentObj, "local_dise");
|
|
|
|
+ if (frmReg.traumaFlag == "1") frmReg.Chk_TraumaFlag.Checked = true;
|
|
|
|
+ if (frmReg.relTtpFlag == "1") frmReg.Chk_RelTtpFlag.Checked = true;
|
|
|
|
+ }
|
|
|
|
+
|
|
DataTable dt = (DataTable)frmReg.dblkcbxInsuranceType.DataSource;
|
|
DataTable dt = (DataTable)frmReg.dblkcbxInsuranceType.DataSource;
|
|
int selectedIndex = 0;
|
|
int selectedIndex = 0;
|
|
|
|
|
|
@@ -901,24 +911,12 @@ namespace PTMedicalInsurance.Business
|
|
frmReg.med_type = dt.Rows[i]["Code"].ToString();
|
|
frmReg.med_type = dt.Rows[i]["Code"].ToString();
|
|
}
|
|
}
|
|
}
|
|
}
|
|
-
|
|
+
|
|
- if (Global.pat.RYorCY == "1")
|
|
|
|
- {
|
|
|
|
- DataTable dtMedType = (DataTable)frmReg.dblkcbxMedicalType.DataSource;
|
|
|
|
- for (int i = 0; i < dtMedType.Rows.Count; i++)
|
|
|
|
- {
|
|
|
|
- if (dtMedType.Rows[i]["Code"].ToString() == "21")
|
|
|
|
- {
|
|
|
|
- frmReg.dblkcbxMedicalType.Text = dtMedType.Rows[i]["Name"].ToString();
|
|
|
|
- frmReg.med_type = dtMedType.Rows[i]["Code"].ToString();
|
|
|
|
- }
|
|
|
|
- }
|
|
|
|
- }
|
|
|
|
|
|
|
|
DataTable dtSettlWay = (DataTable)frmReg.dblkcbxSettelmentWay.DataSource;
|
|
DataTable dtSettlWay = (DataTable)frmReg.dblkcbxSettelmentWay.DataSource;
|
|
for (int i = 0; i < dtSettlWay.Rows.Count; i++)
|
|
for (int i = 0; i < dtSettlWay.Rows.Count; i++)
|
|
{
|
|
{
|
|
- if (dtSettlWay.Rows[i]["Code"].ToString() == "01")
|
|
+ if (dtSettlWay.Rows[i]["Code"].ToString() == settlementWay)
|
|
{
|
|
{
|
|
frmReg.dblkcbxSettelmentWay.Text = dtSettlWay.Rows[i]["Name"].ToString();
|
|
frmReg.dblkcbxSettelmentWay.Text = dtSettlWay.Rows[i]["Name"].ToString();
|
|
frmReg.psn_setlway = dtSettlWay.Rows[i]["Code"].ToString();
|
|
frmReg.psn_setlway = dtSettlWay.Rows[i]["Code"].ToString();
|
|
@@ -994,60 +992,23 @@ namespace PTMedicalInsurance.Business
|
|
jaConvertedDiagnoses[i]["mdtrt_id"] = new JObject();
|
|
jaConvertedDiagnoses[i]["mdtrt_id"] = new JObject();
|
|
jaConvertedDiagnoses[i]["mdtrt_id"] = Global.pat.mdtrtID;
|
|
jaConvertedDiagnoses[i]["mdtrt_id"] = Global.pat.mdtrtID;
|
|
}
|
|
}
|
|
-
|
|
+
|
|
-
|
|
|
|
-
|
|
|
|
-
|
|
|
|
- if ((Global.pat.ExpContent != "") && (Global.pat.RYorCY == "2"))
|
|
|
|
- {
|
|
|
|
- JObject ExpContentObj = JObject.Parse(Global.pat.ExpContent);
|
|
|
|
- frmReg.claTrtFlag = JsonHelper.getDestValue(ExpContentObj, "cla_trt_flag");
|
|
|
|
-
|
|
|
|
- frmReg.traumaFlag = JsonHelper.getDestValue(ExpContentObj, "trum_flag");
|
|
|
|
- frmReg.iptTypeCode = JsonHelper.getDestValue(ExpContentObj, "ipt_type");
|
|
|
|
- frmReg.relTtpFlag = JsonHelper.getDestValue(ExpContentObj, "rel_ttp_flag");
|
|
|
|
- frmReg.mdtrtGrpType = JsonHelper.getDestValue(ExpContentObj, "mdtrt_grp_type");
|
|
|
|
-
|
|
|
|
- if (frmReg.traumaFlag == "1") frmReg.Chk_TraumaFlag.Checked = true;
|
|
|
|
- if (frmReg.relTtpFlag == "1") frmReg.Chk_RelTtpFlag.Checked = true;
|
|
|
|
-
|
|
|
|
-
|
|
|
|
-
|
|
|
|
-
|
|
|
|
-
|
|
|
|
-
|
|
|
|
-
|
|
|
|
-
|
|
|
|
- }
|
|
|
|
|
|
|
|
frmReg.DtDiagnose = (DataTable)jaConvertedDiagnoses.ToObject(typeof(DataTable));
|
|
frmReg.DtDiagnose = (DataTable)jaConvertedDiagnoses.ToObject(typeof(DataTable));
|
|
if (frmReg.ShowDialog() == DialogResult.OK)
|
|
if (frmReg.ShowDialog() == DialogResult.OK)
|
|
{
|
|
{
|
|
string diseCodg = "", diseName = "";
|
|
string diseCodg = "", diseName = "";
|
|
-
|
|
|
|
if (string.IsNullOrEmpty(frmReg.diseCodg))
|
|
if (string.IsNullOrEmpty(frmReg.diseCodg))
|
|
{
|
|
{
|
|
diseCodg = JsonHelper.getDestValue(joHisRtnInfo, "mdtrtinfo.dscg_maindiag_code");
|
|
diseCodg = JsonHelper.getDestValue(joHisRtnInfo, "mdtrtinfo.dscg_maindiag_code");
|
|
- };
|
|
+ }
|
|
if (string.IsNullOrEmpty(frmReg.diseName))
|
|
if (string.IsNullOrEmpty(frmReg.diseName))
|
|
{
|
|
{
|
|
diseName = JsonHelper.getDestValue(joHisRtnInfo, "mdtrtinfo.dscg_maindiag_name");
|
|
diseName = JsonHelper.getDestValue(joHisRtnInfo, "mdtrtinfo.dscg_maindiag_name");
|
|
};
|
|
};
|
|
-
|
|
+
|
|
-
|
|
+ frmReg.insuType = Global.pat.insuType;
|
|
- if (Global.pat.RYorCY == "2")
|
|
+ Global.Set.settlementWay = frmReg.psn_setlway;
|
|
- {
|
|
|
|
-
|
|
|
|
- if (Global.pat.medType == "26")
|
|
|
|
- {
|
|
|
|
- diseCodg = Global.pat.DiseasecCode;
|
|
|
|
- diseName = Global.pat.DiseasecName;
|
|
|
|
- }
|
|
|
|
- else
|
|
|
|
- {
|
|
|
|
- frmReg.insuType = Global.pat.insuType;
|
|
|
|
- }
|
|
|
|
- }
|
|
|
|
|
|
|
|
JObject ExportObj = new JObject();
|
|
JObject ExportObj = new JObject();
|
|
|
|
|
|
@@ -1057,7 +1018,7 @@ namespace PTMedicalInsurance.Business
|
|
}
|
|
}
|
|
else
|
|
else
|
|
{
|
|
{
|
|
- ExportObj.Add("sin_dise_codg", "");
|
|
+ ExportObj.Add("local_dise", local_dise);
|
|
ExportObj.Add("cla_trt_flag", frmReg.claTrtFlag);
|
|
ExportObj.Add("cla_trt_flag", frmReg.claTrtFlag);
|
|
|
|
|
|
ExportObj.Add("bydise_setl_disediag_codg", "");
|
|
ExportObj.Add("bydise_setl_disediag_codg", "");
|