示例#1
0
        /// <summary>
        /// 窗体加载方法
        /// </summary>
        /// <param name="sender"></param>
        /// <param name="e"></param>
        private void UCSalePlanManager_Load(object sender, EventArgs e)
        {
            //base.SetBaseButtonStatus();
            //base.SetButtonVisiableManagerSearch();
            string[] NotReadOnlyColumnsName = new string[] { "colCheck" };
            CommonFuncCall.SetColumnReadOnly(gvSalePlanList, NotReadOnlyColumnsName);

            base.SetContentMenuScrip(gvSalePlanList);
            base.ClearAllToolStripItem();
            base.AddToolStripItem(base.btnExport);
            base.AddToolStripItem(base.btnView);
            base.AddToolStripItem(base.btnSet);
            base.AddToolStripItem(base.btnPrint);

            //禁止列表自增列
            gvSalePlanList.AutoGenerateColumns = false;
            UIAssistants.SetButtonStyle4QueryAndClear(btnSearch, btnClear);  //设置查询按钮和清除按钮样式

            dateTimeStart.Value = DateTime.Now.AddDays(-DateTime.Now.Day + 1);
            dateTimeEnd.Value   = DateTime.Now;

            string com_id = GlobalStaticObj.CurrUserCom_Id;//公司ID

            CommonFuncCall.BindDepartment(ddlDepartment, com_id, "全部");
            CommonFuncCall.BindHandle(ddlResponsiblePerson, "", "全部");
            CommonFuncCall.BindPurchasePlanFinishStatus(ddlFinishStatus, true);
            BindgvSalePlanList();
        }
示例#2
0
        /// <summary>
        /// 窗体加载方法
        /// </summary>
        /// <param name="sender"></param>
        /// <param name="e"></param>
        private void UCPurchasePlanOrderManager_Load(object sender, EventArgs e)
        {
            base.SetBaseButtonStatus();
            base.SetButtonVisiableManagerSearch();
            string[] NotReadOnlyColumnsName = new string[] { "colCheck" };
            CommonFuncCall.SetColumnReadOnly(gvPurchasePlanOrderList, NotReadOnlyColumnsName);
            UIAssistants.SetButtonStyle4QueryAndClear(btnSearch, btnClear);  //设置查询按钮和清除按钮样式
            //禁止列表自增列
            gvPurchasePlanOrderList.AutoGenerateColumns = false;
            dateTimeStart.Value = DateTime.Now;
            dateTimeEnd.Value   = DateTime.Now;
            string com_id = GlobalStaticObj.CurrUserCom_Id;//公司ID

            CommonFuncCall.BindDepartment(ddlDepartment, com_id, "全部");
            CommonFuncCall.BindHandle(ddlResponsiblePerson, "", "全部");
            CommonFuncCall.BindPurchasePlanFinishStatus(ddlFinishStatus, true);
            BindgvPurchasePlanOrderList();
        }
示例#3
0
        //private long CurrteTimeTicks = 0;
        #endregion

        #region 初始化窗体
        /// <summary> 初始化窗体
        /// </summary>
        public UCPurchasePlanOrderManagView()
        {
            InitializeComponent();

            //base.SetBaseButtonStatus();
            //base.SetButtonVisiableManagerSearch();
            string[] NotReadOnlyColumnsName = new string[] { "colCheck" };
            CommonFuncCall.SetColumnReadOnly(gvPurchasePlanOrderList, NotReadOnlyColumnsName);
            UIAssistants.SetButtonStyle4QueryAndClear(btnSearch, btnClear);  //设置查询按钮和清除按钮样式
            //禁止列表自增列
            gvPurchasePlanOrderList.AutoGenerateColumns = false;
            dateTimeStart.Value = DateTime.Now.AddDays(-DateTime.Now.Day + 1);
            dateTimeEnd.Value   = DateTime.Now;
            string com_id = GlobalStaticObj.CurrUserCom_Id;//公司ID

            CommonFuncCall.BindDepartment(ddlDepartment, com_id, "全部");
            CommonFuncCall.BindHandle(ddlResponsiblePerson, "", "全部");
            CommonFuncCall.BindPurchasePlanFinishStatus(ddlFinishStatus, true);
            BindgvPurchasePlanOrderList();

            gvPurchasePlanOrderList.CellMouseClick += new DataGridViewCellMouseEventHandler(gvPurchasePlanOrderList_CellMouseClick);
        }
示例#4
0
        BusinessPrint businessPrint;//业务打印功能
        #endregion

        #region 初始化窗体
        /// <summary> 初始化窗体
        /// </summary>
        public UCPurchasePlanOrderManagView()
        {
            InitializeComponent();

            //base.SetBaseButtonStatus();
            //base.SetButtonVisiableManagerSearch();
            string[] NotReadOnlyColumnsName = new string[] { "colCheck" };
            CommonFuncCall.SetColumnReadOnly(gvPurchasePlanOrderList, NotReadOnlyColumnsName);

            //禁止列表自增列
            gvPurchasePlanOrderList.AutoGenerateColumns = false;
            dateTimeStart.Value = DateTime.Now.AddDays(-DateTime.Now.Day + 1);
            dateTimeEnd.Value   = DateTime.Now;
            string com_id = GlobalStaticObj.CurrUserCom_Id;//公司ID

            CommonFuncCall.BindDepartment(ddlDepartment, com_id, "全部");
            CommonFuncCall.BindHandle(ddlResponsiblePerson, "", "全部");
            CommonFuncCall.BindPurchasePlanFinishStatus(ddlFinishStatus, true);
            BindgvPurchasePlanOrderList();

            gvPurchasePlanOrderList.CellMouseClick += new DataGridViewCellMouseEventHandler(gvPurchasePlanOrderList_CellMouseClick);
            base.ExportEvent += new ClickHandler(UCPurchasePlanOrderManagView_ExportEvent);
            base.ViewEvent   += new ClickHandler(UCPurchasePlanOrderManagView_ViewEvent);
            base.PrintEvent  += new ClickHandler(UCPurchasePlanOrderManagView_PrintEvent);
            base.SetEvent    += new ClickHandler(UCPurchasePlanOrderManagView_SetEvent);
            #region 预览、打印设置
            string        printObject  = "tb_parts_purchase_plan_s";
            string        printTitle   = "采购计划单查询";
            List <string> listNotPrint = new List <string>();
            listNotPrint.Add(plan_id.Name);
            PaperSize paperSize = new PaperSize();
            paperSize.Width  = 297;
            paperSize.Height = 210;
            businessPrint    = new BusinessPrint(gvPurchasePlanOrderList, printObject, printTitle, paperSize, listNotPrint);
            #endregion
        }