- 博客(8)
- 收藏
- 关注
原创 js时间的比较
function timecheck() { //进入时间 var starttime = Xrm.Page.getAttribute("new_starttime").getValue(); //离开时间 var endtime = Xrm.Page.getAttribute("new_endtime").getValue(); if (start
2017-02-17 11:10:09 246
原创 前端js的弹框
function iscopy() { if (Xrm.Page.getAttribute("new_iscopy").getValue() == false) { Xrm.Utility.confirmDialog("是否复制", yesCloseCallback, noCloseCallback) }}function yesCloseCallba
2017-02-16 18:08:08 748
转载 C#中取整函数
Math.Ceiling:只要有小数都加1Math.Floor:总是舍去小数Math.Round:四舍六入五取偶Math.Round(0.0) //0Math.Round(0.1) //0Math.Round(0.2) //0Math.Round(0.3) //0Math.Round(0.4) //0Math.Round(0.5) //0
2017-02-08 13:20:02 5403
原创 C#时间间隔
public static double dateDiff(DateTime startDate, DateTime endDate) { TimeSpan ts = endDate.Subtract(startDate);//TimeSpan得到fromTime和toTime的时间间隔 double countday = ts.
2017-02-08 13:17:36 335
原创 CRM中打印某条记录的报表
function print() { var iHeight = "800"; var iWidth = "800"; var iTop = (window.screen.availHeight - 30 - iHeight) / 2; //获得窗口的垂直位置; var iLeft = (window.screen.availWidth - 10 - iWi
2017-02-08 10:12:29 262
原创 移动app与CRM签名功能的实现
//CRM获取图片的body放到字段中,前端通过web资源调用(类型为PNG格式)document.getElementById("名称").src = "data:image/png;base64," + Xrm.Page.getAttribute("存放图片信息的字段").getValue(); document.getElementById("名称").style.vis
2017-02-08 10:05:25 497
原创 sql语句根据月份动态的求平均数
//sum(电费)---汇总电费//count(电费) --汇总月份select sum(电费)/count(电费) as a from 表with (nolock) where new_year = 年份 and 电费>0
2017-02-08 10:03:04 2254 1
原创 crm与移动app(andriod和ios)图片的查看与保存
//移动端图片的查看(将图片的路径返回给移动端) string filname = annotationqueColletionEntities.Attributes["filename"].ToString().Replace(" ", ""); ; byte[] array = Convert.FromBase64String(annotat
2017-02-07 14:04:37 568
空空如也
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人