@@ -24,8 +24,11 @@ public bool UpdateAllotStates(int allotId, int states, string remark)
...
@@ -24,8 +24,11 @@ public bool UpdateAllotStates(int allotId, int states, string remark)
publicintImportData(intallotId)
publicintImportData(intallotId)
{
{
stringsql=@"select * from view_report_allot_summary where allotid=@allotId;
stringsql=@"
select * from view_report_original_income where allotid=@allotId;";
insert into report_allot_summary(allotid,year,month,hospitalid,realgivefee)
select allotid,year,month,hospitalid,realgivefee from view_report_allot_summary where allotid=@allotId;
insert into report_original_income(allotid,year,month,hospitalid,sourcetype,accountingunit,department,typename,cellvalue)
select allotid,year,month,hospitalid,sourcetype,accountingunit,department,typename,cellvalue from view_report_original_income where allotid=@allotId;";