格式化字符串时,遇到空字符不能格式化。

mac2022-06-30  72

 1.string类型格式string类型。

                            cuscodenew = cusaccount.Element("cuscodenew").Value,                            accdate = string.IsNullOrEmpty(cusaccount.Element("accdate").Value.ToString()) ? "" : DataTypeHelper.GetDateTime(cusaccount.Element("accdate").Value).ToString("dd-MM-yyyy"),                            billcode = cusaccount.Element("billcode").Value,                            cno = cusaccount.Element("cno").Value,                            description = cusaccount.Element("description").Value,                            payin = DataTypeHelper.GetDecimal(cusaccount.Element("payin").Value,0).ToString("N"),                            ccp = DataTypeHelper.GetDecimal(cusaccount.Element("ccp").Value,0).ToString("N"),                            camount =DataTypeHelper.GetDecimal(cusaccount.Element("camount").Value,0).ToString("N"),                            dif = DataTypeHelper.GetDecimal(cusaccount.Element("dif").Value,0).ToString("N"),                            totalbalance = DataTypeHelper.GetDecimal(cusaccount.Element("totalbalance").Value,0).ToString("N")

 

 

转载于:https://www.cnblogs.com/lidaofei1991/articles/3625250.html

相关资源:Konva基础文档
最新回复(0)