牌位版面調整
This commit is contained in:
@@ -225,9 +225,9 @@ public class StyleDataAccess
|
||||
|
||||
sb.Clear();
|
||||
sb.Append("insert into TabletStyleDetail(StyleID,Name,Descr,ElementID,StartX,StartY,FontSize,BreakLen,FontFamily,TwoOffset,");
|
||||
sb.Append("ThreeOffset,FourOffSet,IsActive,Width,Height,TextWidth,TextHeight,CUser,CDate,CTime,UUser,UDate,UTime) ");
|
||||
sb.Append("ThreeOffset,FourOffSet,IsActive,Width,Height,TextWidth,TextHeight,TextSpan,CUser,CDate,CTime,UUser,UDate,UTime) ");
|
||||
sb.Append("values (@StyleID,@Name,@Descr,@ElementID,@StartX,@StartY,@FontSize,@BreakLen,@FontFamily,@TwoOffset,");
|
||||
sb.Append("@ThreeOffset,@FourOffSet,@IsActive,@Width,@Height,@TextWidth,@TextHeight,@CUser,@CDate,@CTime,@UUser,@UDate,@UTime) ");
|
||||
sb.Append("@ThreeOffset,@FourOffSet,@IsActive,@Width,@Height,@TextWidth,@TextHeight,@TextSpan,@CUser,@CDate,@CTime,@UUser,@UDate,@UTime) ");
|
||||
foreach (var item in list)
|
||||
{
|
||||
SqlParameter[] sp1 = new SqlParameter[] {
|
||||
@@ -248,6 +248,7 @@ public class StyleDataAccess
|
||||
new SqlParameter("@Height",item.Height),
|
||||
new SqlParameter("@TextWidth",item.TextWidth),
|
||||
new SqlParameter("@TextHeight",item.TextHeight),
|
||||
new SqlParameter("@TextSpan",item.TextSpan),
|
||||
new SqlParameter("@CUser",""),
|
||||
new SqlParameter("@CDate",""),
|
||||
new SqlParameter("@CTime",""),
|
||||
@@ -304,7 +305,7 @@ public class StyleDataAccess
|
||||
sb.Clear();
|
||||
sb.Append("update TabletStyleDetail set Descr=@Descr,StartX=@StartX,StartY=@StartY,FontSize=@FontSize,BreakLen=@BreakLen,");
|
||||
sb.Append("FontFamily=@FontFamily,TwoOffset=@TwoOffset,ThreeOffset=@ThreeOffset,FourOffset=@FourOffset,IsActive=@IsActive,");
|
||||
sb.Append("Width=@Width,Height=@Height,TextWidth=@TextWidth,TextHeight=@TextHeight,UUser=@UUser,UDate=@UDate,UTime=@UTime ");
|
||||
sb.Append("Width=@Width,Height=@Height,TextWidth=@TextWidth,TextHeight=@TextHeight,TextSpan=@TextSpan,UUser=@UUser,UDate=@UDate,UTime=@UTime ");
|
||||
sb.Append("where StyleID=@StyleID and ElementID=@ElementID ");
|
||||
//sb.Append("insert into TabletStyleDetail(StyleID,Name,Descr,ElementID,StartX,StartY,FontSize,BreakLen,FontFamily,TwoOffset,");
|
||||
//sb.Append("ThreeOffset,FourOffSet,IsActive,Width,Height,TextWidth,TextHeight,CUser,CDate,CTime,UUser,UDate,UTime) ");
|
||||
@@ -330,6 +331,7 @@ public class StyleDataAccess
|
||||
new SqlParameter("@Height",item.Height),
|
||||
new SqlParameter("@TextWidth",item.TextWidth),
|
||||
new SqlParameter("@TextHeight",item.TextHeight),
|
||||
new SqlParameter("@TextSpan",item.TextSpan),
|
||||
new SqlParameter("@CUser",""),
|
||||
new SqlParameter("@CDate",""),
|
||||
new SqlParameter("@CTime",""),
|
||||
|
||||
@@ -52,6 +52,7 @@ public class TabletStyleDetail
|
||||
public string Height { get; set; }
|
||||
public string TextWidth { get; set; }
|
||||
public string TextHeight { get; set; }
|
||||
public string TextSpan { get; set; }
|
||||
public string BreakLen { get; set; }
|
||||
public string CUser { get; set; }
|
||||
public string CDate { get; set; }
|
||||
|
||||
@@ -229,6 +229,7 @@ public class designerController : ApiController
|
||||
tsd.Height = item.height == null ? "" : (string)item.height;
|
||||
tsd.TextWidth = item.textWidth == null ? "" : (string)item.textWidth;
|
||||
tsd.TextHeight = item.textHeight == null ? "" : (string)item.textHeight;
|
||||
tsd.TextSpan = item.textSpan == null ? "" : (string)item.textSpan;
|
||||
list.Add(tsd);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user