public static FKTZSServiceEntity Load(ApplyNoEntity applyNoEntity)
        {
            FKTZSServiceEntity fktzsServiceEntity = new FKTZSServiceEntity();

            fktzsServiceEntity.ApplyNoEntity    = applyNoEntity;
            fktzsServiceEntity.Fktzs_C_HEntitys = FKTZS_C_HEntity.Load(applyNoEntity);
            fktzsServiceEntity.InvoiceEntitys   = InvoiceEntityCollection.Load(applyNoEntity);
            //2018-8-21 11:57:44改造开票申请取数逻辑。开票申请有偿、无偿的取数表不同
            fktzsServiceEntity.KpsqEntitys     = KPSQFactory.Create(applyNoEntity).Load(applyNoEntity);//KPSQEntityCollection.Load(applyNoEntity);
            fktzsServiceEntity.FKTZSZYDEntitys = FKTZSZYDEntityCollection.Load(applyNoEntity);
            return(fktzsServiceEntity);
        }
Example #2
0
        private static FKTZS_C_HEntity AggData(DataTable dt)
        {
            FKTZS_C_HEntity fktzs_C_HEntity = new FKTZS_C_HEntity();

            foreach (DataRow item in dt.Rows)
            {
                fktzs_C_HEntity.ApplyDisplayName = Convert.ToString(item["APPLY_DISPLAYNAME"]);
                fktzs_C_HEntity.ApplyDept        = Convert.ToString(item["APPLY_DEPT"]);
                fktzs_C_HEntity.ApplyDeptCode    = Convert.ToString(item["APPLY_DEPTCODE"]);
                fktzs_C_HEntity.PayObjId         = Convert.ToString(item["PAY_OBJ_ID"]);
                fktzs_C_HEntity.PayObjName       = Convert.ToString(item["PAY_OBJ_NAME"]);
                fktzs_C_HEntity.ZydType          = Convert.ToString(item["XREF2_HD"]);
                fktzs_C_HEntity.ZgjeTotal        = Convert.ToDecimal(item["WBJE_TOTAL"]); //暂估金额合计
                fktzs_C_HEntity.SjjeTotal        = Convert.ToDecimal(item["WBCS_TOTAL"]); //实际金额合计
            }
            return(fktzs_C_HEntity);
        }