要改列印的功能
This commit is contained in:
@@ -1389,6 +1389,7 @@ namespace Model
|
||||
public Nullable<int> parent_num { get; set; }
|
||||
public string print_id { get; set; }
|
||||
public Nullable<System.DateTime> UpdateTime { get; set; }
|
||||
public string style { get; set; }
|
||||
|
||||
public virtual actItem actItem { get; set; }
|
||||
[System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Usage", "CA2227:CollectionPropertiesShouldBeReadOnly")]
|
||||
|
||||
@@ -724,6 +724,7 @@
|
||||
<Property Name="customize_data" Type="nvarchar(max)" />
|
||||
<Property Name="printed_files" Type="nvarchar(max)" />
|
||||
<Property Name="UpdateTime" Type="datetime2" Precision="7" />
|
||||
<Property Name="style" Type="varchar" MaxLength="50" />
|
||||
</EntityType>
|
||||
<EntityType Name="pro_order_record">
|
||||
<Key>
|
||||
@@ -3188,6 +3189,7 @@
|
||||
<Property Name="UpdateTime" Type="DateTime" Precision="7" />
|
||||
<NavigationProperty Name="accountings" Relationship="Model.FK_accounting_pro_order_detail" FromRole="pro_order_detail" ToRole="accounting" />
|
||||
<NavigationProperty Name="transfer_register" Relationship="Model.FK_transfer_register_pro_order_detail" FromRole="pro_order_detail" ToRole="transfer_register" />
|
||||
<Property Name="style" Type="String" Unicode="true" FixedLength="false" MaxLength="50" Nullable="true" />
|
||||
</EntityType>
|
||||
<EntityType Name="pro_order_record">
|
||||
<Key>
|
||||
@@ -5863,6 +5865,7 @@
|
||||
<ScalarProperty Name="demo" ColumnName="demo" />
|
||||
<ScalarProperty Name="customize_data" ColumnName="customize_data" />
|
||||
<ScalarProperty Name="printed_files" ColumnName="printed_files" />
|
||||
<ScalarProperty Name="style" ColumnName="style" />
|
||||
</MappingFragment>
|
||||
</EntityTypeMapping>
|
||||
</EntitySetMapping>
|
||||
|
||||
@@ -4,7 +4,7 @@
|
||||
<edmx:Designer xmlns="http://schemas.microsoft.com/ado/2009/11/edmx">
|
||||
<!-- Diagram content (shape and connector positions) -->
|
||||
<edmx:Diagrams>
|
||||
<Diagram DiagramId="b267a343dc0c4bf0ae194b775754b108" Name="Diagram1" ZoomLevel="78">
|
||||
<Diagram DiagramId="b267a343dc0c4bf0ae194b775754b108" Name="Diagram1" ZoomLevel="116">
|
||||
<EntityTypeShape EntityType="Model.accounting" Width="1.5" PointX="22.5" PointY="22.125" IsExpanded="true" />
|
||||
<EntityTypeShape EntityType="Model.accounting_files" Width="1.5" PointX="15.75" PointY="27.75" IsExpanded="true" />
|
||||
<EntityTypeShape EntityType="Model.accounting_kind" Width="1.5" PointX="11.25" PointY="27.625" IsExpanded="true" />
|
||||
|
||||
@@ -447,6 +447,7 @@ public class orderController : ApiController
|
||||
? x.num.ToString()
|
||||
: (x.parent_num.ToString() + x.num.ToString())
|
||||
),
|
||||
style=x.style??""
|
||||
//cash_record = x.pro_order_record.Select( c => new {
|
||||
// c,
|
||||
// //pay_kind = tdesc2[c.payment.HasValue && x.keyin1.Value > 0 ? x.keyin1.Value : 1],
|
||||
@@ -712,6 +713,7 @@ public class orderController : ApiController
|
||||
order.demo = item.demo;
|
||||
order.customize_data = item.customize_data;
|
||||
order.UpdateTime = DateTime.Now;
|
||||
order.style = item.style;
|
||||
_db.SaveChanges();
|
||||
var ret = new
|
||||
{
|
||||
@@ -765,6 +767,7 @@ public class orderController : ApiController
|
||||
demo = item.demo,
|
||||
customize_data = item.customize_data,
|
||||
UpdateTime = DateTime.Now,
|
||||
style=item.style
|
||||
};
|
||||
_db.pro_order_detail.Add(orderDetail);
|
||||
_db.SaveChanges();
|
||||
|
||||
Reference in New Issue
Block a user