Пример #1
0
 /// <summary>
 /// 对查询界面返回值进行取值赋值到变量中
 /// </summary>
 /// <param name="ud">窗体对象</param>
 public void SetRetrunToDefine(HandOverTheWatchDialog handDialog)
 {
     this._lupFactoryRoom  = handDialog.FactoryRoom;
     this._cmbGongXuName   = handDialog.GongXuName;
     this._lupJiaoBanShife = handDialog.JiaoBanShife;
     this._lupJieBanShife  = handDialog.JieBanShife;
     this._timJiaoBanStart = handDialog.JiaoBanStart.ToString();
     this._timJiaoBanEnd   = handDialog.JiaoBanEnd.ToString();
     this._lupZhuangTai    = handDialog.ZhuangTai;
 }
Пример #2
0
        /// <summary>
        /// 查询交接班记录
        /// </summary>
        /// <param name="sender"></param>
        /// <param name="e"></param>
        private void tsbSelect_Click(object sender, EventArgs e)
        {
            HandOverTheWatchDialog handOverTheWatchDialog = new HandOverTheWatchDialog();

            if (handOverTheWatchDialog.ShowDialog() == DialogResult.OK)
            {
                SetRetrunToDefine(handOverTheWatchDialog);
                string operations = PropertyService.Get(PROPERTY_FIELDS.OPERATIONS);
                //string stores = PropertyService.Get(PROPERTY_FIELDS.STORES);
                //获取用户拥有权限的工厂名称
                DataTable         dt2 = FactoryUtils.GetFactoryRoomByStores(PropertyService.Get(PROPERTY_FIELDS.STORES));
                OperationHandover _operationHandover = new OperationHandover();
                gdcData.MainView = gdvHandOverTheWatch;
                //查询
                DataSet ds = _operationHandover.GetOperationHandoverByReturn(_lupFactoryRoom, _cmbGongXuName, _lupJiaoBanShife, _lupJieBanShife, _timJiaoBanStart, _timJiaoBanEnd, _lupZhuangTai, operations, dt2);
                gdcData.DataSource = ds.Tables.Count > 0 ? ds.Tables[0] : null;
            }
        }