当前位置: 首页>>代码示例>>C#>>正文


C# QueryBuilder.addHourTo方法代码示例

本文整理汇总了C#中QueryBuilder.addHourTo方法的典型用法代码示例。如果您正苦于以下问题:C# QueryBuilder.addHourTo方法的具体用法?C# QueryBuilder.addHourTo怎么用?C# QueryBuilder.addHourTo使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在QueryBuilder的用法示例。


在下文中一共展示了QueryBuilder.addHourTo方法的2个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C#代码示例。

示例1: PLBuildQueryFilter

 public override QueryBuilder PLBuildQueryFilter()
 {
     QueryBuilder filter = new QueryBuilder
     (
          "SELECT uv.ID as ID,hpv.DTD_ID,uv.HO_TEN,hpv.VONG_PHONG_VAN,hpv.NGAY_GIO_PHONG_VAN, hpv.LAN_MOI_PHONG_VAN,tths.NAME as TTHS_NAME, " +
          " hpv.NGAY_GIO_PHONG_VAN  as GIO_PHONG_VAN " +
          "FROM RESUME uv, HEN_PHONG_VAN hpv,DM_TINH_TRANG_HO_SO tths " +
          "WHERE uv.ID=hpv.R_ID AND tths.ID = uv.TTHS_ID AND 1=1"
     );
     filter.add("uv.HO_TEN", Operator.Like, "%" + PLHeplString.PLHelpFortmatName(Filter_TenUV.Text) + "%", DbType.String);
     if (Filter_VongPV.Text != "")
         filter.add("hpv.VONG_PHONG_VAN", Operator.Equal, (int)Filter_VongPV.Value, DbType.Int32);
     filter.addDateFromTo("hpv.NGAY_GIO_PHONG_VAN", Filter_NgayPVTu.DateTime.Date, Filter_NgayPVDen.DateTime.Date);
     filter.addHourFrom(Filter_GioPVTu.TimeEditSub.Time, "hpv.NGAY_GIO_PHONG_VAN");
     filter.addHourTo(Filter_GioPVDen.TimeEditSub.Time, "hpv.NGAY_GIO_PHONG_VAN");
     filter.addID("uv.TTHS_ID", Filter_TinhTrangHoSo._getSelectedID());
     filter.setAscOrderBy("uv.HO_TEN");
     return filter;
 }
开发者ID:khanhdtn,项目名称:my-office-manager,代码行数:19,代码来源:frmPhongVanQL.cs

示例2: PLBuildQueryFilter

 public override QueryBuilder PLBuildQueryFilter()
 {
     FWWaitingMsg msg = new FWWaitingMsg();
     QueryBuilder filter = new QueryBuilder(UpdateRow());
     filter.addLike("UPPER(HO_TEN)",Filter_TenUV.Text.Trim().ToUpper());
     if (Filter_VongPV.Text != "")
         filter.add("VONG_PHONG_VAN", Operator.Equal, (int)Filter_VongPV.Value, DbType.Int32);
     filter.addDateFromTo("NGAY_GIO_PHONG_VAN", ngayLamViec.FromDate, ngayLamViec.ToDate);
     filter.addHourFrom(Filter_GioPVTu.Time, "NGAY_GIO_PHONG_VAN");
     filter.addHourTo(Filter_GioPVDen.Time, "NGAY_GIO_PHONG_VAN");
     filter.addID("TTHS_ID", Filter_TinhTrangHoSo._getSelectedID());
     filter.setAscOrderBy("HO_TEN");
     filter.addCondition(" 1=1 ");
     msg.Finish();
     return filter;
 }
开发者ID:khanhdtn,项目名称:my-office-manager,代码行数:16,代码来源:frmPhongVanQL.cs


注:本文中的QueryBuilder.addHourTo方法示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。